[automated] update diyhrt.wiki

This commit is contained in:
github-actions
2025-02-18 01:10:19 +00:00
parent 0a87ffe211
commit b9ddbc8d47
10 changed files with 16 additions and 23 deletions
+1 -8
View File
@@ -1,8 +1 @@
fetch('nav.html')
.then(res => res.text())
.then(text => {
let oldElem = document.querySelector("script#replace_with_navbar");
let newElem = document.createElement("div");
newElem.innerHTML = text;
oldElem.parentNode.replaceChild(newElem, oldElem);
})
fetch('nav.html').then(res=>res.text()).then(text=>{let oldElem=document.querySelector("script#replace_with_navbar");let newElem=document.createElement("div");newElem.innerHTML=text;oldElem.parentNode.replaceChild(newElem,oldElem);})