From 521fb3dc5de606114ac5cebbb654336492d7461f Mon Sep 17 00:00:00 2001 From: Cameron McEfee Date: Fri, 25 Feb 2011 13:26:21 -0800 Subject: commit before deleting the 'explain it' styles --- js/help.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 js/help.js (limited to 'js/help.js') 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") + } + }) + }); + + -- cgit v1.3.1