ajout de base et correction du script pour sélectionner le style

This commit is contained in:
2026-09-02 23:04:44 +02:00
parent 4f2c02a7a9
commit 0b6c2a1303
3 changed files with 11 additions and 5 deletions
+3 -3
View File
@@ -5,7 +5,7 @@ export async function loadStatus(){
let html_text = await res.text()
let html = new DOMParser().parseFromString(html_text, "text/html");
let shaderSource = getDocumentShaderSource(html);
let target = document.querySelector('#statuSection');
@@ -20,8 +20,8 @@ export async function loadStatus(){
let isOpen = status.innerText.includes('ouvert');
let icon = html.querySelector('link[rel="icon"]');
let style = html.querySelectorAll('link[rel="stylesheet"]')[0];
//console.log("selected script: ", script);
let style = html.querySelector('link[data-import="status-style"]');
//console.log("selected style: ", style);
document.head.append(icon);
document.head.append(style);