summaryrefslogtreecommitdiffstats
path: root/public/js
diff options
context:
space:
mode:
authorKen D'Ambrosio <ken@jots.org>2026-05-12 12:35:58 +0000
committerKen D'Ambrosio <ken@jots.org>2026-05-12 12:35:58 +0000
commit67a19fed3ff7ff9a40d489863fcef432cdba0913 (patch)
treedf7823d467bd66b6b4610353b11f431fcbfa4a2b /public/js
parentca717d9625cdd60272226db50f0f148c949565c7 (diff)
Reverse default slideshow order to show newest photos first
When not shuffled, reverse SS_ENTRIES so the most recently added photos play first instead of last. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'public/js')
-rw-r--r--public/js/slideshow.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/public/js/slideshow.js b/public/js/slideshow.js
index ddcaa3c..3608bcf 100644
--- a/public/js/slideshow.js
+++ b/public/js/slideshow.js
@@ -202,6 +202,8 @@ document.addEventListener('touchend', e => {
const ssParams = new URLSearchParams(location.search);
if (ssParams.get('shuffle') === '1') {
ssQueue = shuffle(SS_ENTRIES);
+} else {
+ ssQueue = SS_ENTRIES.slice().reverse();
}
const ivParam = parseFloat(ssParams.get('interval'));
if (ivParam >= 1 && ivParam <= 60) {