diff options
| author | tekkub <tekkub@gmail.com> | 2009-07-27 01:27:38 -0600 |
|---|---|---|
| committer | tekkub <tekkub@gmail.com> | 2009-07-27 01:27:38 -0600 |
| commit | f1bd9b8a2410131abb0aca5e40d97d3b9b1613c1 (patch) | |
| tree | ffc57d6d1586350945b93c109762ae44b5fd128c /js/main.js | |
| parent | ab8d18035778087fb599175bc73628a654ff6c0a (diff) | |
Add sidebar in, rework index page, add a little jQuery
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 |
