load bottomnav from js
This commit is contained in:
9
assets/global.js
Normal file
9
assets/global.js
Normal 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"));
|
||||
});
|
||||
Reference in New Issue
Block a user