From c0dd997e52138f0cd8995c2d957de161024f5b0a Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" <48434875+JonnyBro@users.noreply.github.com> Date: Mon, 24 Feb 2025 20:20:01 +0500 Subject: [PATCH] fix: theme changer --- components/navbar.html | 17 ++++++++--------- views/admin.ejs | 3 +++ views/index.ejs | 3 +++ views/key.ejs | 5 +++++ views/stats.ejs | 6 ++++++ views/upload.ejs | 5 +++++ 6 files changed, 30 insertions(+), 9 deletions(-) diff --git a/components/navbar.html b/components/navbar.html index 1785fbe..ad72c89 100644 --- a/components/navbar.html +++ b/components/navbar.html @@ -53,11 +53,11 @@ - + <% if (user) { %> <%= user.personaname %> @@ -71,19 +71,18 @@ <% } %> - + if (localStorage.getItem("theme") === "black") document.getElementById("themeSelector").checked = "checked"; + else document.getElementById("themeSelector").checked = null; + \ No newline at end of file diff --git a/views/admin.ejs b/views/admin.ejs index 8b2f2ab..06b9e90 100644 --- a/views/admin.ejs +++ b/views/admin.ejs @@ -25,6 +25,9 @@
diff --git a/views/stats.ejs b/views/stats.ejs index 0c3e522..de42734 100644 --- a/views/stats.ejs +++ b/views/stats.ejs @@ -24,10 +24,16 @@ -ms-overflow-style: none; } + + <% include ../components/navbar.html %> +