X-Git-Url: https://git.exim.org/exim-website.git/blobdiff_plain/8e4b09729f6a0cefe6c78bb38da734d11aa588ad..73f7cdebc3e20a3cd40d1a955f5a08742a5b8fdf:/templates/web/doc/index.js diff --git a/templates/web/doc/index.js b/templates/web/doc/index.js index 9ba9546..c656046 100644 --- a/templates/web/doc/index.js +++ b/templates/web/doc/index.js @@ -1,18 +1,10 @@ -$('#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'); +// Add the expand/collapse functionality + $('#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');