edit: animation se modifie avec le statut d'ouverture + bug css import dans main.css
This commit is contained in:
+13
-1
@@ -1,3 +1,5 @@
|
||||
import { statusProxy } from './main.js'
|
||||
|
||||
export async function loadStatus(){
|
||||
let res = await fetch('/status/index.ouvert.html');
|
||||
|
||||
@@ -11,9 +13,19 @@ export async function loadStatus(){
|
||||
hiddenBtn.style.visibility = 'collapse';
|
||||
|
||||
let status = html.querySelector('#lolStatus');
|
||||
console.log('current status:', status.innerText);
|
||||
|
||||
|
||||
if (status.innerText.includes('ouvert')){
|
||||
statusProxy.lolStatus = true;
|
||||
}else{
|
||||
statusProxy.lolStatus = false;
|
||||
}
|
||||
|
||||
|
||||
let icon = html.querySelector('link[rel="icon"]');
|
||||
let style = html.querySelectorAll('link[rel="stylesheet"]')[0];
|
||||
//console.log("selected style : ", style);
|
||||
//console.log("selected script: ", script);
|
||||
|
||||
document.head.append(icon);
|
||||
document.head.append(style);
|
||||
|
||||
Reference in New Issue
Block a user