load bottomnav from js

This commit is contained in:
2025-12-02 10:22:42 -06:00
parent 2d391dab21
commit 8af6ee7cd5
4 changed files with 15 additions and 5 deletions

9
assets/global.js Normal file
View File

@@ -0,0 +1,9 @@
const parser = new DOMParser();
fetch("/_bottomnav.html")
.then(response => response.text())
.then(text => {
const bottomNav = parser.parseFromString(text, "text/html");
document.body.appendChild(bottomNav.getElementById("bottomnav"));
});