Line 182: | Line 182: | ||
function showSlides(n) { | function showSlides(n) { | ||
var i; | var i; | ||
− | + | ||
var slides = document.getElementsByClassName("mySlides"); | var slides = document.getElementsByClassName("mySlides"); | ||
+ | console.log(slides.length); | ||
//var dots = document.getElementsByClassName("dot"); | //var dots = document.getElementsByClassName("dot"); | ||
if (n > slides.length) {slideIndex = 1} | if (n > slides.length) {slideIndex = 1} |
Revision as of 20:24, 16 October 2018