From 0b952424c304180bd03080ca78202acec85d1592 Mon Sep 17 00:00:00 2001 From: b1rdmania <102524336+b1rdmania@users.noreply.github.com> Date: Mon, 29 Dec 2025 16:41:15 +0000 Subject: [PATCH] Add iOS audio unlock banner to play page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Shows "Tap to enable audio on iOS" banner on iOS devices. Hides automatically once audio is unlocked via button or play. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- play.html | 28 ++++++++++++++++++++++++++++ src/play.ts | 30 +++++++++++++++++++++++++++++- 2 files changed, 57 insertions(+), 1 deletion(-) diff --git a/play.html b/play.html index ead06e5..15a44d8 100644 --- a/play.html +++ b/play.html @@ -294,6 +294,28 @@ color: var(--gb-lightest); } + /* iOS audio unlock banner */ + .ios-audio-banner { + margin-top: calc(var(--spacing-unit) * 2); + padding: calc(var(--spacing-unit) * 2); + border-top: 2px solid var(--gb-light); + display: none; /* toggled by JS */ + text-align: center; + } + .ios-audio-banner p { + font-size: 8px; + color: var(--gb-light); + margin: 0 0 calc(var(--spacing-unit)) 0; + line-height: 2; + } + .ios-audio-banner button { + background: var(--gb-lightest); + color: var(--gb-darkest); + border: var(--pixel-border) solid var(--gb-light); + padding: 12px 20px; + font-size: 10px; + } + /* Footer */ .footer { margin-top: calc(var(--spacing-unit) * 4); @@ -338,6 +360,12 @@ + +
+

Tap to enable audio on iOS

+ +
+