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.

39 lines
781 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. $.fn.transition.settings.debug = true;
  10. $('.kitten.image')
  11. .transition('internal', 'debug', function() {
  12. $('.console')
  13. .append(arguments[0] + "\n")
  14. // scroll to bottom
  15. .prop('scrollTop', $('.console').prop('scrollHeight') )
  16. ;
  17. })
  18. ;
  19. $navigationItem
  20. .tab()
  21. ;
  22. $oddballItem
  23. .on('click', function() {
  24. $(this)
  25. .tab('deactivate all')
  26. .tab('activate tab', 'third')
  27. .tab('activate navigation', 'third')
  28. ;
  29. })
  30. ;
  31. };
  32. // attach ready event
  33. $(document)
  34. .ready(semantic.home.ready)
  35. ;