Skip to content

Commit

Permalink
Update slider
Browse files Browse the repository at this point in the history
  • Loading branch information
Smaug6739 committed Mar 6, 2021
1 parent 3295a2f commit 8fac575
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion __frontend/public/css/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ a:hover{color:var(--red)}
padding : 3%;
}
.image-album{
height: 300px;
height: 180px;
width: 80%;
margin-left: 10%;
}
Expand Down
16 changes: 14 additions & 2 deletions __frontend/public/js/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,17 @@ function showSlides(n) {
dots[i].className = dots[i].className.replace(" active", "");
}
slides[slideIndex-1].style.display = "block";
dots[slideIndex-1].className += " active";
}
if(dots[slideIndex-1]) dots[slideIndex-1].className += " active";
}
/*showSlides();
function showSlides() {
var i;
var slides = document.getElementsByClassName("mySlides");
for (i = 0; i < slides.length; i++) {
slides[i].style.display = "none";
}
slideIndex++;
if (slideIndex > slides.length) {slideIndex = 1}
slides[slideIndex-1].style.display = "block";
}*/

0 comments on commit 8fac575

Please sign in to comment.