SHARE
TWEET

Untitled

a guest Apr 18th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function showSlides(n) {
  2.     console.log('showSlides')
  3.   var i;
  4.   var slides = $(".mySlides");
  5.   console.log(slides)
  6.   console.log('slides.length')
  7.   console.log(slides.length)
  8.   if (n > slides.length) {slideIndex = 1}
  9.   if (n < 1) {slideIndex = slides.length}
  10.   console.log('slides.length')
  11.   console.log(slides.length)
  12.  
  13.   for (i = 0; i < slides.length; i++) {
  14.     console.log('++++++++++')
  15.     console.log(slides[i])
  16.       slides[i].style.display = "none";
  17.   }
  18.   slides[slideIndex-1].style.display = "block";
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top