|
|
|
@ -42,7 +42,7 @@ function showSlides(n, className = "mySlides", counter = "slideIndex", dotclass
|
|
|
|
|
var slides = document.getElementsByClassName(className);
|
|
|
|
|
var dots = document.getElementsByClassName(dotclass);
|
|
|
|
|
if (n > slides.length) {window[counter] = 1}
|
|
|
|
|
if (n < 1) {slideIndex = slides.length}
|
|
|
|
|
if (n < 1) {window[counter] = slides.length}
|
|
|
|
|
for (i = 0; i < slides.length; i++) {
|
|
|
|
|
slides[i].style.display = "none";
|
|
|
|
|
}
|
|
|
|
|