X-Git-Url: https://git.exim.org/exim-website.git/blobdiff_plain/8e4b09729f6a0cefe6c78bb38da734d11aa588ad..52b33ebd755ffe58ffa039c47ba2538a9c6af6f3:/templates/web/doc/index.js?ds=sidebyside diff --git a/templates/web/doc/index.js b/templates/web/doc/index.js index 9ba9546..0a8737a 100644 --- a/templates/web/doc/index.js +++ b/templates/web/doc/index.js @@ -1,18 +1,11 @@ -$('#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'); \ No newline at end of file