[automated] update diyhrt.wiki

This commit is contained in:
github-actions
2025-03-18 01:14:18 +00:00
parent b5c89a1c7a
commit bb17865b76
10 changed files with 18 additions and 25 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);})