Merge pull request 'feature(ui): Reload contenu après dernière image' (#29) from vlbeaudoin/feature/auto-reload-contenu into main

Reviewed-on: #29
This commit is contained in:
Victor Lacasse-Beaudoin 2025-02-17 18:13:14 -05:00
commit 0d8f880023

View file

@ -10,15 +10,14 @@ function afficherImage() {
} }
function augmenterIndex() { function augmenterIndex() {
if (indexImages >= images.length - 1) {
indexImages = 0;
} else {
indexImages ++; indexImages ++;
} }
}
function executionLoop(){ function executionLoop(){
//afficherIndex(); if (indexImages >= images.length) {
location.reload();
}
afficherImage(); afficherImage();
augmenterIndex(); augmenterIndex();
} }