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.

29 lines
502 B

  1. semantic.home = {};
  2. // ready event
  3. semantic.home.ready = function() {
  4. // selector cache
  5. var
  6. $navigationItem = $('.demo .menu .item'),
  7. $oddballItem = $navigationItem.filter('.oddball')
  8. ;
  9. $navigationItem
  10. .tab()
  11. ;
  12. $oddballItem
  13. .on('click', function() {
  14. $(this)
  15. .tab('deactivate all')
  16. .tab('activate tab', 'third')
  17. .tab('activate navigation', 'third')
  18. ;
  19. })
  20. ;
  21. };
  22. // attach ready event
  23. $(document)
  24. .ready(semantic.home.ready)
  25. ;