X-Git-Url: https://git.exim.org/exim-website.git/blobdiff_plain/8e4b09729f6a0cefe6c78bb38da734d11aa588ad..875b32a5cae79542de81d6aa579f8897f83f52e8:/templates/web/doc/index.js 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