From 97f7234f92d5f496d120f0ad931e681b051870f3 Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Mon, 20 May 2024 11:34:25 -0500 Subject: [PATCH] Improved stats section --- pageUpdater.js | 3 ++- static/stats/index.html | 8 +++++++- static/style.css | 22 ++++++++++++++++++++++ 3 files changed, 31 insertions(+), 2 deletions(-) diff --git a/pageUpdater.js b/pageUpdater.js index b319cdf..8efc628 100644 --- a/pageUpdater.js +++ b/pageUpdater.js @@ -112,7 +112,8 @@ function converter(html, query) { "RELOAD_COUNT": reloads, "WEATHER_MODIFIER": "", "WEATHER_TEXT": "", - "ANNOUNCEMENT": fs.readFileSync(path.join(__dirname, "config/announcement.html")) + "ANNOUNCEMENT": fs.readFileSync(path.join(__dirname, "config/announcement.html")), + "CACHED_IMAGES": fs.readdirSync(path.join(__dirname, "cached")).length.toString() } replacers.ALL_KEYWORDS = "{" + Object.keys(replacers).join("}{") + "} " diff --git a/static/stats/index.html b/static/stats/index.html index baf139d..b231b68 100644 --- a/static/stats/index.html +++ b/static/stats/index.html @@ -35,7 +35,13 @@ +


+
    +
  1. Increments by 1 EVERY time ANY page is loaded.
  2. +
  3. Cached Images are cleared on server restart.
  4. diff --git a/static/style.css b/static/style.css index 1bdc3cf..4e5c9db 100644 --- a/static/style.css +++ b/static/style.css @@ -267,4 +267,26 @@ li { video { width: 95%; max-height: 90vh; +} + +sup { + color: gray; +} + +.noteList { + list-style: none; +} + +.noteList > * { + counter-increment: noteList; + color: gray; + font-size: 1rem; +} + +.noteList > li::before { + content: "*" counter(noteList) ". "; +} + +em { + color: inherit; } \ No newline at end of file