From f1bd9b8a2410131abb0aca5e40d97d3b9b1613c1 Mon Sep 17 00:00:00 2001 From: tekkub Date: Mon, 27 Jul 2009 01:27:38 -0600 Subject: Add sidebar in, rework index page, add a little jQuery --- js/main.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 js/main.js (limited to 'js') diff --git a/js/main.js b/js/main.js new file mode 100644 index 0000000..f4772ea --- /dev/null +++ b/js/main.js @@ -0,0 +1,14 @@ +$(function(){ + if (typeof main_category == "undefined") { + $(".sidebar dl:first").slideDown(2) + } else { + $(".sidebar dl#" + main_category).slideDown(2) + } + + $(".sidebar h3").click(function(){ + if ($(".sidebar dl#" + this.id).is(":hidden")) { + $(".sidebar dl:visible").slideUp("fast") + $(".sidebar dl#" + this.id).show("fast") + } + }) +}) \ No newline at end of file -- cgit v1.3.1