js bug fix compiled again

This commit is contained in:
Bachir Soussi Chiadmi 2024-09-25 17:02:40 +02:00
parent 935b2ceeab
commit e9ef33f882
2 changed files with 10 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -330,8 +330,15 @@
}
// Enable/disable arrows based on the current slide
document.getElementById('arrowPrev').disabled = false; // Always enabled now
document.getElementById('arrowNext').disabled = false; // Always enabled now
// Attach event listeners
let arrowprev = document.getElementById('arrowPrev');
if (arrowprev) {
arrowprev.disabled = false; // Always enabled now
}
let arrownext = document.getElementById('arrowNext')
if (arrownext) {
arrownext.disabled = false; // Always enabled now
}
}
function prevSlide() {