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++; } }