Fix carrousel op ios
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Julius 2024-12-22 11:33:27 +01:00
parent d1c6532ca4
commit 463451bd7d
Signed by: j00lz
GPG key ID: AF241B0AA237BBA2
2 changed files with 14 additions and 2 deletions

View file

@ -26,8 +26,12 @@ Activiteiten die voorbij zijn kun je <a href="/oudeactiviteiten" target="_self">
let slideIndex = 1;
let slides = [];
let slides = [...(Array(29).keys().map((idx) => `${idx+1}`.padStart(2,"0")).map((arg) => `https://s3.asraphiel.dev/galerie/20241220/${arg}.jpg`))]
for(let i = 0; i < 29; i++) {
// [...((new Array(29)).keys().map((idx) => `${idx+1}`.padStart(2,"0")).map((arg) => `https://s3.asraphiel.dev/galerie/20241220/${arg}.jpg`))]
slides.push(`https://s3.asraphiel.dev/galerie/20241220/${(i+1).toString().padStart(2,"0")}.jpg`)
}
function createImage(url, index, total) {
let content = `

View file

@ -65,9 +65,17 @@ met een enkele uitzondering. Klik op de foto hieronder voor een impressie van he
let slideIndex = 1;
let dots = document.getElementById("dots")
let slides = [];
for(let i = 0; i < 29; i++) {
// [...((new Array(29)).keys().map((idx) => `${idx+1}`.padStart(2,"0")).map((arg) => `https://s3.asraphiel.dev/galerie/20241220/${arg}.jpg`))]
slides.push(`https://s3.asraphiel.dev/galerie/20241220/${(i+1).toString().padStart(2,"0")}.jpg`)
}
let slides = [...(Array(29).keys().map((idx) => `${idx+1}`.padStart(2,"0")).map((arg) => `https://s3.asraphiel.dev/galerie/20241220/${arg}.jpg`))]
// dots.innerHTML = `slides length: ${slides.length}`
function createImage(url, index, total) {
let content = `