From 42503d407a5ec4efdb61a4d009f1bd46ffc8a965 Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Sat, 22 Feb 2014 18:15:15 -0800 Subject: 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. --- web/scripts/growth.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'web/scripts') 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(); } + -- cgit v1.2.3