diff --git a/images/non.jpeg b/images/non.jpeg new file mode 100644 index 0000000..3596708 Binary files /dev/null and b/images/non.jpeg differ diff --git a/index.html b/index.html index 3243437..272b66d 100644 --- a/index.html +++ b/index.html @@ -57,11 +57,14 @@

Oui

const time = date.getHours() * 60 + date.getMinutes(); const text = document.getElementById('response'); + const img = document.querySelector('img'); if (openHours[dateOfTheWeek].some(range => time >= range[0] && time <= range[1])) { text.textContent = 'Oui'; } else { text.textContent = 'Non'; + img?.src="https://raw.githubusercontent.com/jadeen/estcequelacitedysestouverte/refs/heads/main/images/non.jpeg"; + img?.alt="Je sais pas trop, mais ça a pas l'air d'être la grande forme"; }