From e898357da954acb561a0a88b4443da52f774ce36 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 2 May 2026 12:32:22 +0300 Subject: feat: secure shares with keyboard-first My Shares modal (hotkeys S/L) --- web/share.html | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) (limited to 'web/share.html') diff --git a/web/share.html b/web/share.html index 8ca053a..f8f7bee 100644 --- a/web/share.html +++ b/web/share.html @@ -35,13 +35,6 @@ font-size: 1.25rem; color: var(--text-primary); } - .back-link { - margin-top: 1.5rem; - color: var(--accent); - text-decoration: none; - font-size: 0.9rem; - } - .back-link:hover { color: var(--accent-hover); } /* Player overrides for standalone share page */ .player { @@ -74,12 +67,12 @@
-
+
- - + +
0:00
@@ -87,13 +80,13 @@
0:00
- +
- + +
- Back to Home @@ -102,7 +95,6 @@ initPlayer(); - // Parse injected metadata const metaEl = document.getElementById('share-meta'); let data = null; try { @@ -111,9 +103,10 @@ if (data && data.media) { loadMediaDirect(data.media, data.stream_url, data.thumb_url, 0); - // Auto-play on first click via the big play overlay handled by player.js, - // but start paused so the controls are visible. The overlay click already - // wires to togglePlay. + const dlBtn = document.getElementById('btn-download'); + if (dlBtn && data.download_url) { + dlBtn.addEventListener('click', () => { location.href = data.download_url; }); + } } -- cgit v1.2.3