summaryrefslogtreecommitdiff
path: root/web
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
commit9323fd4f9077bd876e0e220fda6bfd2192dadd59 (patch)
treec8d7054d1710de70460b42d98fa3c87131762a1b /web
parent586e997fae3f7c262e3098a0c82b531f745db5ee (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')
-rw-r--r--web/scripts/growth.js14
-rw-r--r--web/style.css5
2 files changed, 17 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();
}
+
diff --git a/web/style.css b/web/style.css
index 4253a66..23f6a39 100644
--- a/web/style.css
+++ b/web/style.css
@@ -375,6 +375,7 @@ footer a:hover {
#thefeed article .answer {
background: #f6f6f6;
+ color: #999;
}
#thefeed article div div {
@@ -402,6 +403,10 @@ footer a:hover {
font-weight: bold;
}
+#thefeed .answer.slider {
+ display: none;
+}
+
#thefeed textarea {
background: #fff;
width: 100%;