Il quadro del palio, ridisegnato in stile gioco dalla foto vera: incorniciato alla fine e nei Ringraziamenti

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ApqNBvNbNCwXqR2RLo8QJh
This commit is contained in:
2026-10-24 22:42:08 +02:00
co-authored by Claude Opus 5.5
parent 73a8be39c5
commit 39c17a1d0c
6 changed files with 30 additions and 6 deletions
+2 -1
View File
@@ -130,7 +130,7 @@ function fillReel() {
const all = pictures.flatMap((p, i) => i % 4 === 3 && faces.length ? [p, faces[(i >> 2) % faces.length]] : [p]);
for (const src of [...all, ...all]) {
const img = Object.assign(document.createElement('img'), { src, alt: '', loading: 'lazy', decoding: 'async' });
if (src.includes('/credits/')) img.className = 'face';
if (src.includes('/credits/')) img.className = src.endsWith('palio.png') ? 'palio' : 'face';
track.append(img);
}
}
@@ -157,6 +157,7 @@ function rollCredits() {
}
function showFace({ name, face }) {
$('face').querySelector('img').src = face;
$('face').querySelector('img').classList.toggle('palio', face.endsWith('palio.png'));
$('face').querySelector('figcaption').textContent = name;
$('face').hidden = false;
}