diff options
Diffstat (limited to 'js/main.js')
| -rw-r--r-- | js/main.js | 14 |
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 |
