From 39a5302f124d8642a272c5bee30fae02fec6e0e7 Mon Sep 17 00:00:00 2001 From: thatscringebro Date: Sun, 11 Sep 2022 11:19:12 -0400 Subject: [PATCH] =?UTF-8?q?D=C3=A9but=20de=20l'op=C3=A9ration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mementomori.html | 2 +- mementomori.js | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/mementomori.html b/mementomori.html index 549bcc0..8dac9fd 100644 --- a/mementomori.html +++ b/mementomori.html @@ -24,6 +24,6 @@ \ No newline at end of file diff --git a/mementomori.js b/mementomori.js index 9ca98b6..367b502 100644 --- a/mementomori.js +++ b/mementomori.js @@ -27,11 +27,13 @@ function remplir(nbsemaines) if(b == nbsemainesperyear / 2) divbox.classList.add("box-break"); else + { divbox.classList.add("box"); - if(cptsemaine < nbsemaines) + cptsemaine++; + } + if(cptsemaine <= nbsemaines) divbox.classList.add("enabled"); divboxes.append(divbox); - cptsemaine++; } }