adjust file structure

This commit is contained in:
2025-12-03 09:59:01 -06:00
parent 70806b80ee
commit 478d84b0be
8 changed files with 43 additions and 43 deletions

13
assets/js/global.js Normal file
View File

@@ -0,0 +1,13 @@
const parser = new DOMParser();
fetch("/_bottomnav.html")
.then(response => response.text())
.then(text => {
const bottomNavHTML = parser.parseFromString(text, "text/html");
const bottomNav = bottomNavHTML.getElementById("bottomnav");
const pathSpan = bottomNav.querySelector("span");
pathSpan.innerText = pathSpan.innerText.replace("%PATH%", document.location.pathname);
document.body.appendChild(bottomNav);
});