feature(ui): Reload contenu après dernière image #29
1 changed files with 4 additions and 5 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue