ajout de base et correction du script pour sélectionner le style
This commit is contained in:
+3
-3
@@ -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);
|
||||
|
||||
@@ -3,8 +3,11 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<base href="https://labolyon.fr/status/" target="_blank">
|
||||
|
||||
<link rel="icon" type="image/svg" href="../assets/favicon.svg" />
|
||||
<link rel="stylesheet" href="closedStyle.css">
|
||||
<link rel="stylesheet" data-import="status-style" href="closedStyle.css">
|
||||
<link rel="stylesheet" href="../style/animation.css">
|
||||
<link rel="stylesheet" href="../style/typo.css">
|
||||
<link rel="stylesheet" href="../style/reduced.css">
|
||||
|
||||
@@ -3,8 +3,11 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<base href="https://labolyon.fr/status/" target="_blank">
|
||||
|
||||
<link rel="icon" type="image/svg" href="../assets/favicon_open.svg" />
|
||||
<link rel="stylesheet" href="openStyle.css">
|
||||
<link rel="stylesheet" data-import="status-style" href="openStyle.css">
|
||||
<link rel="stylesheet" href="../style/animation.css">
|
||||
<link rel="stylesheet" href="../style/typo.css">
|
||||
<link rel="stylesheet" href="../style/reduced.css">
|
||||
|
||||
Reference in New Issue
Block a user