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