From abdcc8f76488b5b523410fc8857853c085a25671 Mon Sep 17 00:00:00 2001 From: Suraj patil Date: Sun, 10 Jan 2016 19:28:24 +0530 Subject: [PATCH] tasks content visibility can be toggled --- public/static/css/styles.css | 8 ++++++++ public/static/js/script.js | 4 +++- public/templates/home.html | 4 ++-- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/public/static/css/styles.css b/public/static/css/styles.css index 87b2f8a..13c32e9 100644 --- a/public/static/css/styles.css +++ b/public/static/css/styles.css @@ -142,6 +142,14 @@ hr{ .noteContent { padding-top: 7px; font-size: 0.9em; + display: none; +} + +.toggle{ + height: 30px; + padding:1px; + margin-top:-30px; + float:right; } .notefooter{ diff --git a/public/static/js/script.js b/public/static/js/script.js index ea61f16..d7d2439 100644 --- a/public/static/js/script.js +++ b/public/static/js/script.js @@ -40,5 +40,7 @@ $(document).ready(function(){ } } );*/ - +$('.toggle').click(function(){ + $(this).next().toggle(); + }); }); diff --git a/public/templates/home.html b/public/templates/home.html index 483d02f..4d256c4 100644 --- a/public/templates/home.html +++ b/public/templates/home.html @@ -34,8 +34,8 @@
{{ if .Tasks}} {{range .Tasks}}
-

{{.Title}}

-
+

{{.Title}}

+

{{.Content}}