summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authortekkub <tekkub@gmail.com>2009-07-27 01:27:38 -0600
committertekkub <tekkub@gmail.com>2009-07-27 01:27:38 -0600
commitf1bd9b8a2410131abb0aca5e40d97d3b9b1613c1 (patch)
treeffc57d6d1586350945b93c109762ae44b5fd128c /js
parentab8d18035778087fb599175bc73628a654ff6c0a (diff)
Add sidebar in, rework index page, add a little jQuery
Diffstat (limited to 'js')
-rw-r--r--js/main.js14
1 files changed, 14 insertions, 0 deletions
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