summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorPhyscik <mynameisgennadiy@vk.com>2025-12-26 20:08:28 +0500
committerPhyscik <mynameisgennadiy@vk.com>2025-12-26 20:08:28 +0500
commitfb2adbb65087252c0fd0392c8fa8f0218bffa22b (patch)
tree609f9b0604179d29613735e76d70df30357315d8 /static
parent424c95749a12b57caeba7c3ecd5034daacf5a651 (diff)
Articles idnexing
Diffstat (limited to 'static')
-rw-r--r--static/common.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/static/common.js b/static/common.js
index a7dc3a5..bf98cea 100644
--- a/static/common.js
+++ b/static/common.js
@@ -13,15 +13,15 @@ function ToggleMode() {
function setLightMode() {
swapClasses("dark", "light");
localStorage.setItem("theme", "light");
- document.getElementById("toggleIcon").src = "static/toggle.svg"
- document.getElementById("homeIcon").src = "static/home_dark.svg"
+ document.getElementById("toggleIcon").src = "/static/toggle.svg"
+ document.getElementById("homeIcon").src = "/static/home_dark.svg"
}
function setDarkMode() {
swapClasses("light", "dark");
localStorage.setItem("theme", "dark");
- document.getElementById("toggleIcon").src = "static/toggle_dark.svg"
- document.getElementById("homeIcon").src = "static/home.svg"
+ document.getElementById("toggleIcon").src = "/static/toggle_dark.svg"
+ document.getElementById("homeIcon").src = "/static/home.svg"
}
function swapClasses(baseClass, newClass) {