edit: html tout propre et début css

This commit is contained in:
2026-07-23 19:14:23 +02:00
parent 1d622924fb
commit e6ae40dc51
46 changed files with 14100 additions and 1415 deletions
+18
View File
@@ -0,0 +1,18 @@
async function importOuverture(){
const res = await fetch("/status/index.html")
if(!res.ok){
throw new Error(`Server responded with status ${res.status} ${res.statusText}`)
}
let html_text = await res.text()
let html = new DOMParser().parseFromString(html_text, "text/html");
for(let style of html.querySelectorAll("head > style")) {
document.head.append(style)
}
let textStatus = html.querySelector("#statusText").textContent;
let statusBox = document.querySelector('#statusText');
statusBox.textContent = textStatus;
}
importOuverture()