You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
646 B

  1. semantic.dropdown = {};
  2. // ready event
  3. semantic.dropdown.ready = function() {
  4. // selector cache
  5. var
  6. // alias
  7. handler
  8. ;
  9. // event handlers
  10. handler = {
  11. };
  12. $('.first.example .menu .item')
  13. .tab({
  14. context: '.first.example'
  15. })
  16. ;
  17. $('.history.example .menu .item')
  18. .tab({
  19. context : '.history.example',
  20. history : true,
  21. path : '/modules/tab.html'
  22. })
  23. ;
  24. $('.dynamic.example .menu .item')
  25. .tab({
  26. context : '.dynamic.example',
  27. auto : true,
  28. path : '/modules/tab.html'
  29. })
  30. ;
  31. };
  32. // attach ready event
  33. $(document)
  34. .ready(semantic.dropdown.ready)
  35. ;