c656046af923c51917ee05089dcdce2d73ce49e0
[exim-website.git] / templates / web / doc / index.js
1 // Add the expand/collapse functionality
2         $('#chapters')
3                 .addClass('expandable')
4                 .find('.button')
5                 .click(function(){
6                         $(this).parent().toggleClass('open');
7                 });
8         $('#options img.expand').click(function(){ $('.chapter').addClass('open'); });
9         $('#options img.collapse').click(function(){ $('.chapter').removeClass('open') });
10         $('#options').removeClass('hidden');