Imported initial website redesign work
[exim-website.git] / templates / web / doc / index.js
diff --git a/templates/web/doc/index.js b/templates/web/doc/index.js
new file mode 100644 (file)
index 0000000..9ba9546
--- /dev/null
@@ -0,0 +1,18 @@
+$('#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');