9 lines
249 B
JavaScript
9 lines
249 B
JavaScript
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"));
|
|
}); |