edit: tout prêt niveau front sans contenu ??? (à verifier) + orga js

This commit is contained in:
2026-07-27 23:41:50 +02:00
parent 6d95e9d80c
commit 27f4c25b10
10 changed files with 170 additions and 103 deletions
+22
View File
@@ -0,0 +1,22 @@
export async function loadStatus(){
let res = await fetch('/status/index.ouvert.html');
let html_text = await res.text()
let html = new DOMParser().parseFromString(html_text, "text/html");
let target = document.querySelector('#statuSection');
let hiddenBtn = target.querySelector('a');
hiddenBtn.style.visibility = 'collapse';
let status = html.querySelector('#lolStatus');
let icon = html.querySelector('link[rel="icon"]');
let style = html.querySelectorAll('link[rel="stylesheet"]')[0];
console.log("selected style : ", style);
document.head.append(icon);
document.head.append(style);
target.appendChild(status);
}