basic site added
This commit is contained in:
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 755 B |
@@ -0,0 +1,6 @@
|
||||
document.querySelectorAll("nav a").forEach((link) => {
|
||||
let locationRegex = new RegExp(`${window.location.pathname}.*?`);
|
||||
if (link.pathname === window.location.pathname) {
|
||||
link.classList.add("active-page");
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user