summaryrefslogtreecommitdiff
path: root/js/help.js
diff options
context:
space:
mode:
authorCameron McEfee <cameron@github.com>2011-02-25 13:26:21 -0800
committerCameron McEfee <cameron@github.com>2011-02-25 13:26:21 -0800
commit521fb3dc5de606114ac5cebbb654336492d7461f (patch)
tree9785203597d8c904927a452f8a854d0fdfa227f5 /js/help.js
parent24e997a7789019de6c0d39dfd76660557c1a78e3 (diff)
commit before deleting the 'explain it' styles
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")
+ }
+ })
+ });
+
+