pedf
/
spolky
Archived
1
0
Fork 0

Oprava wrapu carouselu

Carousel se teď otáčí když index < 1.
master
Emil Miler 4 years ago
parent 974e5473ab
commit 19c39d3e06

@ -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";
}