X-Git-Url: https://git.exim.org/exim-website.git/blobdiff_plain/6bc094771cb3ac2e80fb8669432dde5cf3740c8d..8e4b09729f6a0cefe6c78bb38da734d11aa588ad:/templates/web/doc/index.js diff --git a/templates/web/doc/index.js b/templates/web/doc/index.js new file mode 100644 index 0000000..9ba9546 --- /dev/null +++ b/templates/web/doc/index.js @@ -0,0 +1,18 @@ +$('#chapters') + .addClass('expandable') + .find('.button') + .click(function(){ + $(this).parent().toggleClass('open'); + }); + +$('#options img.expand') + .click(function(){ + $('.chapter').addClass('open') + }); + +$('#options img.collapse') + .click(function(){ + $('.chapter').removeClass('open') + }); + +$('#options').removeClass('hidden');