summaryrefslogtreecommitdiffstats
path: root/public/js/slideshow.js
AgeCommit message (Collapse)AuthorFilesLines
2026-05-12Move slideshow interval control to album page; fix mobile viewport clippingKen D'Ambrosio1-0/+4
- Interval input (default 5 s) now lives beside Shuffle/Full screen on the album page; passed as ?interval= param to the slideshow and seeded into the hidden ss-interval input on load. - Added "Interval" label text next to the input. - Fixed slideshow controls being pushed off-screen on mobile by using 100dvh (dynamic viewport height) with 100vh as a fallback, so the layout accounts for mobile browser chrome. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-12Fix slideshow photos showing too briefly due to preload timingKen D'Ambrosio1-5/+8
The next timer was starting as soon as ssShow() was called, so preload time + 500ms crossfade ate into the visible interval. Now the timer starts only after applyEntry() fires (photo is actually on screen), guaranteeing each photo gets a full interval of visibility. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-12Keep screen awake during slideshow via Wake Lock APIKen D'Ambrosio1-1/+16
Acquire a screen wake lock when the slideshow is playing; release on pause or page hide; re-acquire when the tab returns to the foreground. Failures are silently ignored so older browsers degrade gracefully. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-11Fix slideshow timer burst when returning from background tabKen D'Ambrosio1-1/+10
Use Page Visibility API to cancel the timer when the tab hides and reschedule fresh on return, so no queued ticks fire in a burst. Also fix stale #photo= → ?photo= in stage click-through. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-10Add slideshow: root-level, shuffle, fullscreen, click-to-albumKen D'Ambrosio1-13/+102
- Root slideshow: all_media_entries walks the full media tree so /slideshow/ shows every photo across all albums; Slideshow button always appears on the root album page - Shuffle and Full screen checkboxes sit next to the Slideshow button on the album page; options pass as ?shuffle=1&fullscreen=1 URL params - Fullscreen uses a tap-to-activate overlay (browsers block auto-entry on page load); webkit-prefixed for Safari; ⛶ button and F key for mid-session toggle - Fullscreen mode hides controls, counter, caption bar, and site header - Exiting fullscreen auto-pauses so the current photo stays visible - Click/tap anywhere in the stage navigates to the photo's album lightbox; reads the live src attribute instead of ssIdx to avoid a race where ssIdx advances during the cross-fade while the old photo is still on screen - layout.erb excluded from slideshow (layout: false) so the site header never appears there - CSS cache-busted with ?v=2 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-09Initial commit — Albumen photo albumKen1-0/+113
Ruby/Sinatra self-hosted photo album with directory hierarchy, per-photo captions and visibility, lightbox, slideshow, admin UI, and Let's Encrypt HTTPS via Apache reverse proxy on prouter. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>