aboutsummaryrefslogtreecommitdiff
path: root/weblog/static
diff options
context:
space:
mode:
authorYaroslsav-95 <contact@yaroslavps.com>2018-01-31 08:27:11 +0300
committerYaroslsav-95 <contact@yaroslavps.com>2018-01-31 08:27:11 +0300
commit28b67ad39af15d27bad7e55a0ae7fafe91139239 (patch)
treeb94b7d55bfc8b95f2a3c0b96fe17d6eeee85589f /weblog/static
parent40949b252c9929c755715d3e32df47cd82b095a0 (diff)
downloadw3blog-28b67ad39af15d27bad7e55a0ae7fafe91139239.tar.gz
w3blog-28b67ad39af15d27bad7e55a0ae7fafe91139239.zip
Initial
Diffstat (limited to 'weblog/static')
-rw-r--r--weblog/static/weblog/css/weblog.css7
-rw-r--r--weblog/static/weblog/js/weblog.js13
2 files changed, 20 insertions, 0 deletions
diff --git a/weblog/static/weblog/css/weblog.css b/weblog/static/weblog/css/weblog.css
new file mode 100644
index 0000000..cb1facc
--- /dev/null
+++ b/weblog/static/weblog/css/weblog.css
@@ -0,0 +1,7 @@
+.archive-list{
+ list-style-type: none;
+}
+
+.archive-child-list{
+ display: none;
+} \ No newline at end of file
diff --git a/weblog/static/weblog/js/weblog.js b/weblog/static/weblog/js/weblog.js
new file mode 100644
index 0000000..b802841
--- /dev/null
+++ b/weblog/static/weblog/js/weblog.js
@@ -0,0 +1,13 @@
+function toggleNode(caller){
+ state = $(caller).attr('node-state');
+ target = $(caller).attr('node-target');
+ if(state=='closed'){
+ $(caller).html('—');
+ $(caller).attr('node-state', 'open');
+ }
+ else{
+ $(caller).html('+');
+ $(caller).attr('node-state', 'closed');
+ }
+ $('#'+target).toggle();
+} \ No newline at end of file