summaryrefslogtreecommitdiff
path: root/js/help.js
diff options
context:
space:
mode:
authorCameron McEfee <cameron@github.com>2011-03-03 15:16:08 -0800
committerCameron McEfee <cameron@github.com>2011-03-03 15:16:08 -0800
commitb70759d42f18ea02f6c867c72613365ba7c03c71 (patch)
treec501e0e598e0f5524ce4add4e01f7285e0f12148 /js/help.js
parent5c4e4b6b61da76b67f38caa44eaffd9246be85f5 (diff)
readded js files
Diffstat (limited to 'js/help.js')
-rw-r--r--js/help.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/js/help.js b/js/help.js
new file mode 100644
index 0000000..b372837
--- /dev/null
+++ b/js/help.js
@@ -0,0 +1,14 @@
+ $(document).ready(function(){
+ $(".more-info h4").click(function () {
+ var contentdiv = $(this).parent().find(".more-content")
+ var h4 = $(this).parent().find("h4")
+ h4.toggleClass("compressed expanded")
+ if (contentdiv.is(":hidden")) {
+ contentdiv.slideDown("50")
+ } else {
+ contentdiv.slideUp("50")
+ }
+ })
+ });
+
+