summaryrefslogtreecommitdiff
path: root/web/scripts/growth.js
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2014-02-22 18:15:15 -0800
committerJesse Morgan <jesse@jesterpm.net>2014-02-22 18:15:15 -0800
commit42503d407a5ec4efdb61a4d009f1bd46ffc8a965 (patch)
tree59933de4d81225f748a218f84c80f5e3edea77ce /web/scripts/growth.js
parent9526fe75f2343e50f35c436dc0b4a4beb7de7eff (diff)
Adding support to post new messages.
Other Changes: * JsonEncodedProvider no longer implements Provider. * Only the first answer is shown. Others slide down. * Switch going deeper and the feed.
Diffstat (limited to 'web/scripts/growth.js')
-rw-r--r--web/scripts/growth.js14
1 files changed, 12 insertions, 2 deletions
diff --git a/web/scripts/growth.js b/web/scripts/growth.js
index 86ac21f..9ae6786 100644
--- a/web/scripts/growth.js
+++ b/web/scripts/growth.js
@@ -105,6 +105,8 @@ $(document).ready(function()
}
}).trigger('blur');
+ $("#thefeed article .answer:nth-child(3)").delay(300).slideDown();
+
$("#banner").slideDown();
});
@@ -300,6 +302,14 @@ function submitClassForm()
return false;
}
-function answerQuestion(id) {
- $("#answer-" + id).slideDown();
+function answerQuestion(id)
+{
+ $("#answer-" + id).slideToggle();
+}
+
+function showAnswers(obj)
+{
+ $(obj).hide();
+ $(obj).parents(".answer").siblings(".slider").slideDown();
}
+