Skip to content
- Choosing a selection results in a full page refresh.
- Opens in a new window.
document.addEventListener('DOMContentLoaded', function(){
const slides = document.querySelectorAll('.slides img');
let currentIndex = 0;
function showSlide(index) {
slides[currentIndex].classList.remove('active');
currentIndex = (index + slides.length) % slides.length;
slides[currentIndex].classList.add('active');
}
document.querySelector('.prev').addEventListener('click', () => {
showSlide(currentIndex - 1);
});
document.querySelector('.next').addEventListener('click', () => {
showSlide(currentIndex + 1);
});
});