From a7a956cde55a7fa790deb215218abedc8b152344 Mon Sep 17 00:00:00 2001 From: derzombiiie Date: Tue, 17 Aug 2021 17:45:18 +0200 Subject: [PATCH] added tags to frontend! --- html/js/entry.js | 9 +++++++++ html/style/light.css | 31 ++++++++++++++++++++++++++++--- logs/log.log | 21 +++++++++++++++++++++ 3 files changed, 58 insertions(+), 3 deletions(-) diff --git a/html/js/entry.js b/html/js/entry.js index 9df5fae..be1f98d 100644 --- a/html/js/entry.js +++ b/html/js/entry.js @@ -8,6 +8,12 @@ class entry { this.id = id } createelement() { + // create taglist + let tags = "" + for ( let i = 0 ; i < this.tags.length ; i++ ) { + tags += `${this.tags[i]}` + } + let element = document.createElement("DIV"); element.innerHTML += `
@@ -15,6 +21,9 @@ class entry {
${this.desc}
+
+
Tags:
+
${tags}
` element.classList = ["entrybox"] return element diff --git a/html/style/light.css b/html/style/light.css index cf26b54..e815a4b 100644 --- a/html/style/light.css +++ b/html/style/light.css @@ -69,6 +69,34 @@ border-top-width: 1px; border-top-style: solid; } +.entrybox > .entry > .tags { + height: 2em; +} +.entrybox > .entry > .tagtitle { + font-size: 0.7em; + font-style: italic; +} +.entrybox > .entry > .tags > .tag { + position: relative; + top: 0.4em; + left: -0.3em; + margin-left: 0.4em; + + padding: 0.15em; + padding-top: 0.1em; + + border-color: #6d5dbf; + border-width: 1px; + border-style: solid; + + border-top-color: #6f5dbf; + border-top-width: 0.3em; + border-top-style: solid; +} +.entrybox > .entry > .tags > .tag:hover { + background-color: #6f5dbf33 +} + /* comments */ .comments > .comment { @@ -100,9 +128,6 @@ /* other stuff */ /* footer */ -.footer { - color: #414141; -} .footer > a.text { font-size: 0.7em; } diff --git a/logs/log.log b/logs/log.log index 994d643..ce258c8 100644 --- a/logs/log.log +++ b/logs/log.log @@ -721,3 +721,24 @@ err, crashed!" 1629150195225 | Reading posts sorted by "hot" with a length of 10 1629150244240 | Reading postindex 1629150244824 | Reading posts sorted by "hot" with a length of 10 +--- SEPERATOR --- +--- SEPERATOR --- +1629161822577 | Dumping config: +1629161822584 | {"debug":false,"logging":1337,"logfile":"logs/log.log","ipget_endpoint_set":"//derzombiiie.com/getip.php?settoken=${TOKEN}","ipget_endpoint_get":"//derzombiiie.com/getip.php?token=${TOKEN}","cl":true,"site_name":"blog.derzombiiie.com","search_enable":false,"search_only_tags":true,"commenting_enabled":true,"post_ranking_auto":43200,"index_post_sort":"new","comment_sync_on_write":false,"comment_auto_sync":360} +1629212141086 | Reading posts sorted by "new" with a length of 10 +1629213138214 | Reading posts sorted by "new" with a length of 10 +1629213160051 | Reading posts sorted by "new" with a length of 10 +1629213174056 | Reading posts sorted by "new" with a length of 10 +--- SEPERATOR --- +1629213206780 | Dumping config: +1629213206786 | {"debug":false,"logging":1337,"logfile":"logs/log.log","ipget_endpoint_set":"//derzombiiie.com/getip.php?settoken=${TOKEN}","ipget_endpoint_get":"//derzombiiie.com/getip.php?token=${TOKEN}","cl":true,"site_name":"blog.derzombiiie.com","search_enable":false,"search_only_tags":true,"commenting_enabled":true,"post_ranking_auto":43200,"index_post_sort":"new","comment_sync_on_write":false,"comment_auto_sync":360} +1629213248066 | Reading posts sorted by "new" with a length of 10 +1629213294278 | Reading posts sorted by "new" with a length of 10 +1629213298344 | Reading posts sorted by "new" with a length of 10 +1629213311129 | Reading posts sorted by "new" with a length of 10 +1629213342304 | Reading posts sorted by "new" with a length of 10 +1629213812178 | Reading posts sorted by "new" with a length of 10 +1629213820059 | Reading posts sorted by "new" with a length of 10 +1629213972588 | Reading posts sorted by "new" with a length of 10 +1629214553064 | Reading posts sorted by "new" with a length of 10 +1629214575204 | Reading posts sorted by "new" with a length of 10