From 49c24c1833eb790adaf712111eb55b334a89a99c Mon Sep 17 00:00:00 2001 From: ToolCTRL Date: Thu, 28 May 2026 18:13:28 +0200 Subject: [PATCH] GameJam: Galerie-Spiele erst auf Klick laden (kein Auto-Ton) Statt jedes eingereichte Spiel sofort in ein iframe zu laden (wodurch mehrere Spiele gleichzeitig Ton abspielten), zeigt die Galerie jetzt einen "Spiel starten"-Platzhalter. Das iframe (und damit Ton) wird erst beim Klick erzeugt. Co-Authored-By: Claude Opus 4.7 (1M context) --- public/gamejam.html | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/public/gamejam.html b/public/gamejam.html index b567c1b..36a23ef 100644 --- a/public/gamejam.html +++ b/public/gamejam.html @@ -298,6 +298,16 @@ .games { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 6px; } .game { background: var(--panel); border: 1px solid var(--line); } .game .frame { width: 100%; aspect-ratio: 16/10; border: none; background: var(--panel2); display: block; } + /* Klick-zum-Starten-Platzhalter: Spiel (und Ton) lädt erst beim Klick. */ + .game .frame-idle { + width: 100%; aspect-ratio: 16/10; border: none; background: var(--panel2); + display: flex; flex-direction: column; align-items: center; justify-content: center; + gap: 10px; cursor: pointer; color: var(--ac); + font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 1px; + text-transform: uppercase; transition: background .15s; + } + .game .frame-idle:hover { background: var(--panel); } + .game .frame-idle svg.ic { width: 34px; height: 34px; } .game .gm { padding: 15px 17px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); @@ -738,8 +748,10 @@ async function loadGallery() { const who = escapeHtml(g.teilnehmer || g.team || ""); gallery.insertAdjacentHTML("beforeend", `