diff --git a/tem/html/core/head.html b/tem/html/core/head.html index d0f649a..865640c 100644 --- a/tem/html/core/head.html +++ b/tem/html/core/head.html @@ -8,8 +8,8 @@ - - + + @@ -81,7 +81,7 @@ gap: 6px; " > - +
home
diff --git a/web/public/js/mono.js b/web/public/js/mono.js index ce52063..6b0dc1f 100644 --- a/web/public/js/mono.js +++ b/web/public/js/mono.js @@ -16,6 +16,15 @@ document.addEventListener("DOMContentLoaded", () => { const main_el = elbyid("main"); const top_img_el = elbyid("top_img"); + const currentPath = window.location.pathname; + const sideLinks = side_el.getElementsByTagName('a'); + + for (const link of sideLinks) { + if (link.pathname === currentPath) { + link.classList.add('onpage'); + } + } + nav_fade = () => { if (window.scrollY == 0) { if (!side_open) { diff --git a/web/public/style.css b/web/public/style.css index 97451e3..d15b8f1 100644 --- a/web/public/style.css +++ b/web/public/style.css @@ -134,9 +134,6 @@ body { margin: 0; } } - > a.onpage { - background-color: #11111166; - } > #support { display: none; } @@ -144,6 +141,9 @@ body { display: none; } } +#side a.onpage { + background-color: #11111133; +} #side a:hover { background-color: #11111166; transition: 0.166s;