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.

47 lines
717 B

  1. semantic.customize = {};
  2. // ready event
  3. semantic.customize.ready = function() {
  4. var
  5. $accordion = $('.main.container .ui.accordion'),
  6. $choice = $('.download .item'),
  7. $popup = $('.main.container [data-content]'),
  8. $checkbox = $('.download .item .checkbox'),
  9. handler = {}
  10. ;
  11. $choice
  12. .on('click', function() {
  13. $(this)
  14. .find($checkbox)
  15. .checkbox('toggle')
  16. ;
  17. })
  18. ;
  19. $checkbox
  20. .checkbox()
  21. ;
  22. $accordion
  23. .accordion({
  24. exclusive: false,
  25. onChange: function() {
  26. $('.ui.sticky').sticky('refresh');
  27. }
  28. })
  29. ;
  30. $popup
  31. .popup()
  32. ;
  33. };
  34. // attach ready event
  35. $(document)
  36. .ready(semantic.customize.ready)
  37. ;