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