diff --git a/src/assets/js/slideshow.js b/src/assets/js/slideshow.js index 52cdab9b53..81976977c8 100644 --- a/src/assets/js/slideshow.js +++ b/src/assets/js/slideshow.js @@ -1,13 +1,13 @@ -var slideIndex = 0; +let slideIndex = 0; carousel(); function carousel() { - var x = $("#slideshow").children(); - for (var i = 0; i < x.length; i++) { + let x = $("#slideshow").children(); + for (let i = 0; i < x.length; i++) { x[i].style.display = "none"; } slideIndex++; if (slideIndex > x.length) {slideIndex = 1} x[slideIndex-1].style.display = "block"; setTimeout(carousel, 4000); -} \ No newline at end of file +}