diff --git a/index.html b/index.html index dcffe49..1a56766 100755 --- a/index.html +++ b/index.html @@ -1473,6 +1473,17 @@

Photos

return data.files || []; } + function shuffleArray(array) { + let currentIndex = array.length, randomIndex; + while (currentIndex != 0) { + randomIndex = Math.floor(Math.random() * currentIndex); + currentIndex--; + [array[currentIndex], array[randomIndex]] = [ + array[randomIndex], array[currentIndex]]; + } + return array; + } + async function loadAlbum(albumKey) { if (albumState[albumKey]?.loaded) return; @@ -1497,7 +1508,7 @@

Photos

} // Randomize order for that "alive" feel - items.sort(() => Math.random() - 0.5); + shuffleArray(items); const grid = document.createElement('div'); grid.className = 'album-grid'; diff --git a/server.log b/server.log new file mode 100644 index 0000000..56d10ca --- /dev/null +++ b/server.log @@ -0,0 +1,3 @@ +127.0.0.1 - - [27/Feb/2026 08:18:50] "GET / HTTP/1.1" 200 - +127.0.0.1 - - [27/Feb/2026 08:19:15] "GET / HTTP/1.1" 200 - +127.0.0.1 - - [27/Feb/2026 08:19:15] "GET /flower.jpg HTTP/1.1" 200 -