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.

31 lines
472 B

  1. semantic.accordion = {};
  2. // ready event
  3. semantic.accordion.ready = function() {
  4. // selector cache
  5. var
  6. $accordion = $('.ui.accordion'),
  7. $menuAccordion = $('.ui.menu.accordion'),
  8. $checkbox = $('.ui.checkbox'),
  9. // alias
  10. handler
  11. ;
  12. $accordion
  13. .accordion()
  14. ;
  15. $menuAccordion
  16. .accordion({
  17. exclusive: true
  18. })
  19. ;
  20. $checkbox
  21. .checkbox()
  22. ;
  23. };
  24. // attach ready event
  25. $(document)
  26. .ready(semantic.accordion.ready)
  27. ;