From 0b6c2a1303e9c71be5f8c92f3939a0f0bc46ba5b Mon Sep 17 00:00:00 2001 From: vgaNAR6ta Date: Wed, 2 Sep 2026 23:04:44 +0200 Subject: [PATCH] =?UTF-8?q?ajout=20de=20base=20et=20correction=20du=20scri?= =?UTF-8?q?pt=20pour=20s=C3=A9lectionner=20le=20style?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/status.js | 6 +++--- status/index.fermé.html | 5 ++++- status/index.ouvert.html | 5 ++++- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/js/status.js b/js/status.js index e3cbaa8..9265625 100644 --- a/js/status.js +++ b/js/status.js @@ -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); diff --git a/status/index.fermé.html b/status/index.fermé.html index 1870d6a..f908a62 100644 --- a/status/index.fermé.html +++ b/status/index.fermé.html @@ -3,8 +3,11 @@ + + + - + diff --git a/status/index.ouvert.html b/status/index.ouvert.html index 2a0b964..ee47838 100644 --- a/status/index.ouvert.html +++ b/status/index.ouvert.html @@ -3,8 +3,11 @@ + + + - +