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.

10 lines
460 B

  1. let makeCodeBlocksCollapsible = function() {
  2. $(".toggle > *").hide();
  3. $(".toggle .header").show();
  4. $(".toggle .header").click(function() {
  5. $(this).parent().children().not(".header").toggle({"duration": 400});
  6. $(this).parent().children(".header").toggleClass("open");
  7. });
  8. };
  9. // we could use the }(); way if we would have access to jQuery in HEAD, i.e. we would need to force the theme
  10. // to load jQuery before our custom scripts