diff --git a/ui/js/slider.js b/ui/js/slider.js index d078327..827aa6d 100644 --- a/ui/js/slider.js +++ b/ui/js/slider.js @@ -10,15 +10,14 @@ function afficherImage() { } function augmenterIndex() { - if (indexImages >= images.length - 1) { - indexImages = 0; - } else { indexImages ++; - } } function executionLoop(){ - //afficherIndex(); + if (indexImages >= images.length) { + location.reload(); + } + afficherImage(); augmenterIndex(); }