summaryrefslogtreecommitdiffstats
path: root/public/js
diff options
context:
space:
mode:
authorKen D'Ambrosio <ken@jots.org>2026-05-12 14:45:00 +0000
committerKen D'Ambrosio <ken@jots.org>2026-05-12 14:45:00 +0000
commitb47fdda4fe1bf6fe90d0ba30eedac435dde7c034 (patch)
tree81f1921bedaf9e86e65d511c6bacbddd4697c7df /public/js
parent67a19fed3ff7ff9a40d489863fcef432cdba0913 (diff)
Add photo counts, EXIF details, video duration badges, slideshow launcher UI
- Album cards show recursive photo count (bubbles up through sub-albums). - Lightbox info panel shows camera, aperture, shutter speed, and ISO; update.rb now extracts and stores these EXIF fields. - Video thumbnail cards show a duration badge (e.g. "1:23"). - Slideshow launcher redesigned: button on its own line, with Shuffle / Full screen / Interval options on a second line, all inside a rounded border to make the grouping clear. - Fixed album-actions alignment so Interval sits level with the checkboxes. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'public/js')
-rw-r--r--public/js/album.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/public/js/album.js b/public/js/album.js
index c3f775f..3fca29b 100644
--- a/public/js/album.js
+++ b/public/js/album.js
@@ -45,6 +45,10 @@ function lbBuildInfo(e) {
rows.push(['Date', d.toLocaleString(undefined, { dateStyle: 'medium', timeStyle: 'short' })]);
}
if (e.width && e.height) rows.push(['Dimensions', `${e.width} × ${e.height}`]);
+ if (e.camera) rows.push(['Camera', e.camera]);
+ if (e.aperture) rows.push(['Aperture', e.aperture]);
+ if (e.shutter) rows.push(['Shutter', e.shutter]);
+ if (e.iso) rows.push(['ISO', e.iso]);
document.getElementById('lb-info-dl').innerHTML =
rows.map(([k, v]) => `<dt>${k}</dt><dd>${v}</dd>`).join('');
document.getElementById('lb-info-panel').classList.add('hidden');