Difference between revisions of "Team:KU Leuven/Engagement"

Line 162: Line 162:
  
 
<script>
 
<script>
var slideIndex = 1;
+
var slideIndex = 0;
 
showSlides();
 
showSlides();
  
Line 168: Line 168:
 
     var i;
 
     var i;
 
     var slides = document.getElementsByClassName("mySlides");
 
     var slides = document.getElementsByClassName("mySlides");
    var dots = document.getElementsByClassName("dot");
 
 
     for (i = 0; i < slides.length; i++) {
 
     for (i = 0; i < slides.length; i++) {
      slides[i].style.display = "none";
+
        slides[i].style.display = "none";  
 
     }
 
     }
 
     slideIndex++;
 
     slideIndex++;
     if (slideIndex > slides.length) {slideIndex = 1}   
+
     if (slideIndex > slides.length) {slideIndex = 1}  
    for (i = 0; i < dots.length; i++) {
+
     slides[slideIndex-1].style.display = "block";  
        dots[i].className = dots[i].className.replace(" active", "");
+
     setTimeout(showSlides, 2000); // Change image every 2 seconds
    }
+
     slides[slideIndex-1].style.display = "block"; 
+
    dots[slideIndex-1].className += " active";
+
     setTimeout(showSlides, 5000); // Change image every 2 seconds
+
 
}
 
}
 
</script>
 
</script>

Revision as of 18:43, 25 October 2017

Public Engagement

1 / 3
Public Engagement
2 / 3
Public Engagement
3 / 3
Public Engagement

Public Engagement

Coming Soon

Public Engagement

Coming Soon.

Public Engagement

Coming Soon