diff --git a/__frontend/public/css/home.css b/__frontend/public/css/home.css index 4dc85d5..bb0c897 100644 --- a/__frontend/public/css/home.css +++ b/__frontend/public/css/home.css @@ -229,7 +229,7 @@ a:hover{color:var(--red)} padding : 3%; } .image-album{ - height: 300px; + height: 180px; width: 80%; margin-left: 10%; } diff --git a/__frontend/public/js/home.js b/__frontend/public/js/home.js index be1d620..13e4e52 100644 --- a/__frontend/public/js/home.js +++ b/__frontend/public/js/home.js @@ -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"; -} \ No newline at end of file + 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"; +}*/ \ No newline at end of file