Galerie live booth.copydev.fr + icones agrandies + pellicule
- booth/: serveur Node.js galerie photo live avec auth par code 4 chiffres - Backend: envoi auto des photos vers booth, endpoint QR dynamique - Frontend: code + QR booth sur ecran accueil, icone pellicule pour multi-shot - Icones mode agrandies (5rem) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -14,6 +14,7 @@ async function init() {
|
||||
setupEcranAccueil();
|
||||
setupModes();
|
||||
setupOnglets();
|
||||
chargerBoothInfo();
|
||||
}
|
||||
|
||||
function appliquerConfig() {
|
||||
@@ -209,6 +210,28 @@ function toggleVisible(id, visible) {
|
||||
}
|
||||
}
|
||||
|
||||
async function chargerBoothInfo() {
|
||||
const booth = config.booth || {};
|
||||
const el = document.getElementById('booth-info');
|
||||
if (!booth.actif || !booth.url) {
|
||||
el.classList.add('cache');
|
||||
return;
|
||||
}
|
||||
try {
|
||||
const info = await apiGet('/api/booth/info');
|
||||
if (info.password) {
|
||||
document.getElementById('booth-code').textContent = info.password;
|
||||
// QR code vers le site booth
|
||||
const eventId = booth.event_id || 'default';
|
||||
const qrUrl = `${booth.url}/${eventId}`;
|
||||
document.getElementById('booth-qr').src = `/api/qr?url=${encodeURIComponent(qrUrl)}`;
|
||||
el.classList.remove('cache');
|
||||
}
|
||||
} catch (e) {
|
||||
el.classList.add('cache');
|
||||
}
|
||||
}
|
||||
|
||||
function afficherStatut(message, type = 'succes') {
|
||||
const el = document.getElementById('statut-partage');
|
||||
el.textContent = message;
|
||||
|
||||
Reference in New Issue
Block a user