mirror of
https://github.com/soapingtime/diyhrt.git
synced 2026-09-04 20:10:19 +02:00
[automated] update diyhrt.wiki
This commit is contained in:
+1
-8
@@ -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);})
|
||||
Reference in New Issue
Block a user