ajout de base et correction du script pour sélectionner le style
This commit is contained in:
+2
-2
@@ -20,8 +20,8 @@ export async function loadStatus(){
|
|||||||
let isOpen = status.innerText.includes('ouvert');
|
let isOpen = status.innerText.includes('ouvert');
|
||||||
|
|
||||||
let icon = html.querySelector('link[rel="icon"]');
|
let icon = html.querySelector('link[rel="icon"]');
|
||||||
let style = html.querySelectorAll('link[rel="stylesheet"]')[0];
|
let style = html.querySelector('link[data-import="status-style"]');
|
||||||
//console.log("selected script: ", script);
|
//console.log("selected style: ", style);
|
||||||
|
|
||||||
document.head.append(icon);
|
document.head.append(icon);
|
||||||
document.head.append(style);
|
document.head.append(style);
|
||||||
|
|||||||
@@ -3,8 +3,11 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<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="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/animation.css">
|
||||||
<link rel="stylesheet" href="../style/typo.css">
|
<link rel="stylesheet" href="../style/typo.css">
|
||||||
<link rel="stylesheet" href="../style/reduced.css">
|
<link rel="stylesheet" href="../style/reduced.css">
|
||||||
|
|||||||
@@ -3,8 +3,11 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<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="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/animation.css">
|
||||||
<link rel="stylesheet" href="../style/typo.css">
|
<link rel="stylesheet" href="../style/typo.css">
|
||||||
<link rel="stylesheet" href="../style/reduced.css">
|
<link rel="stylesheet" href="../style/reduced.css">
|
||||||
|
|||||||
Reference in New Issue
Block a user