From 0323fd53436fd4a879ed6a009fd20b4597f399ee Mon Sep 17 00:00:00 2001 From: Emmy D'Anello Date: Thu, 20 Apr 2023 20:59:48 +0200 Subject: [PATCH] Ajout du footer et fixation de la barre de progression Signed-off-by: Emmy D'Anello --- templates/template.html.j2 | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/templates/template.html.j2 b/templates/template.html.j2 index 91f3747..2b2e8f8 100644 --- a/templates/template.html.j2 +++ b/templates/template.html.j2 @@ -7,11 +7,12 @@ + -
+

Le pays est-il apaisé ?

{% if current_day < 100 %} @@ -23,7 +24,10 @@

+

Jour {{ current_day }}/100

+
+
17/04/2023 @@ -37,8 +41,6 @@ 26/07/2023
- -

Jour {{ current_day }}/100

@@ -119,6 +121,14 @@ À venir : une carte de l'ensemble des déplacements et rassemblements.
+ + @@ -131,6 +141,7 @@ let counterText = document.getElementById("remaining-time") let counterBar = document.getElementById("progress-bar") let counterBarDiv = counterBar.parentNode + let currentDaySpan = document.getElementById("current-day") function updateCounter() { let now = new Date() @@ -162,6 +173,7 @@ let percent = 100 * elapsedTime / totalTime counterBar.style.width = `${percent}%` counterBarDiv.setAttribute('aria-valuenow', `${dayNumber}`) + currentDaySpan.innerText = dayNumber } setInterval(updateCounter, 1000)