suppresion de qq console log et un script inutilisé

This commit is contained in:
2026-09-02 23:38:01 +02:00
parent 0b6c2a1303
commit 8f6907d5a6
2 changed files with 6 additions and 28 deletions
+2 -2
View File
@@ -12,11 +12,11 @@ export async function loadEvents(){
let posterStyle = posterHTML.querySelectorAll('head > style:not([data-import="no-import"])')
console.log('entry data :', title, date, poster, posterStyle);
//console.log('entry data :', title, date, poster, posterStyle);
let selectedEntry = createEntry(title, date, poster, posterStyle)
console.log('created new details :', selectedEntry);
//console.log('created new details :', selectedEntry);
event.replaceChildren(selectedEntry);
}
-22
View File
@@ -1,22 +0,0 @@
async function importOuverture(){
const res = await fetch("/status/index.html")
if(!res.ok){
throw new Error(`Server responded with status ${res.status} ${res.statusText}`)
}
let html_text = await res.text()
let html = new DOMParser().parseFromString(html_text, "text/html");
for(let style of html.querySelectorAll("head > style")) {
document.head.append(style)
}
let textStatus = html.querySelector("#statusText").textContent;
let statusBox = document.querySelector('#statusText');
statusBox.textContent = textStatus;
}
importOuverture()
for( let btn of document.querySelectorAll(".iconBtnStyle")){
btn.style.visibility = 'visible';
}