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:
commit
0d8f880023
1 changed files with 4 additions and 5 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue