This commit is contained in:
Tben
2022-06-03 17:36:24 +01:00
parent 74db5bd158
commit 30fb78c4ff
17 changed files with 244 additions and 2446 deletions
+1 -6
View File
@@ -1,6 +1 @@
document.querySelectorAll("nav a").forEach((link) => {
let locationRegex = new RegExp(`${window.location.pathname}.*?`);
if (link.pathname === window.location.pathname) {
link.classList.add("active-page");
}
});