diff --git a/web/src/components/photos/carousel.astro b/web/src/components/photos/carousel.astro index e8ea55e..a58518b 100644 --- a/web/src/components/photos/carousel.astro +++ b/web/src/components/photos/carousel.astro @@ -23,9 +23,16 @@ const getImageLink = async (record: any) => { const titleEl = document.getElementById('photo-title'); const cameraEl = document.getElementById('photo-camera'); const locationEl = document.getElementById('photo-location'); + const currentPosIndicator = document.getElementById('current-pos'); + const maxPosIndicator = document.getElementById('max-pos'); + + maxPosIndicator!.innerText = cap as string + currentPosIndicator!.innerText = (pos + 1) as string function updatePhoto() { const currentPhoto = photos[pos]; + + currentPosIndicator!.innerText = (pos + 1) as string // Update image src if (img && currentPhoto) { @@ -64,15 +71,7 @@ const getImageLink = async (record: any) => {