current stage of CSS tests, but we'll switch drastically again
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
// Open the Modal
|
||||
function openModal() {
|
||||
document.getElementById("myModal").style.display = "block";
|
||||
document.getElementById("snap-modal").style.display = "block";
|
||||
}
|
||||
|
||||
// Close the Modal
|
||||
function closeModal() {
|
||||
document.getElementById("myModal").style.display = "none";
|
||||
document.getElementById("snap-modal").style.display = "none";
|
||||
}
|
||||
|
||||
var slideIndex = 1;
|
||||
@@ -23,8 +23,8 @@ function currentSlide(n) {
|
||||
|
||||
function showSlides(n) {
|
||||
var i;
|
||||
var slides = document.getElementsByClassName("mySlides");
|
||||
var dots = document.getElementsByClassName("demo");
|
||||
var slides = document.getElementsByClassName("snap-slide");
|
||||
var dots = document.getElementsByClassName("img-thumb");
|
||||
var captionText = document.getElementById("caption");
|
||||
if (n > slides.length) { slideIndex = 1 }
|
||||
if (n < 1) { slideIndex = slides.length }
|
||||
@@ -34,7 +34,7 @@ function showSlides(n) {
|
||||
for (i = 0; i < dots.length; i++) {
|
||||
dots[i].className = dots[i].className.replace(" img-active", "");
|
||||
}
|
||||
slides[slideIndex - 1].style.display = "block";
|
||||
slides[slideIndex - 1].style.display = "inline-block";
|
||||
dots[slideIndex - 1].className += " img-active";
|
||||
captionText.innerHTML = dots[slideIndex - 1].alt;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user