From a5fa5b0972c9319ee5592445d8335303011dd27e Mon Sep 17 00:00:00 2001 From: JianMiau Date: Tue, 7 Jul 2026 10:27:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=83=E6=8F=8F=E6=88=90=E5=8A=9F=E5=BE=8C?= =?UTF-8?q?=E5=8F=B3=E4=B8=8B=E8=A7=92=E9=A1=AF=E7=A4=BA=E5=BD=B1=E7=89=87?= =?UTF-8?q?=E4=B8=8B=E8=BC=89=E6=8C=89=E9=88=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 摘要: 掃到照片後,掃描頁右下角出現圓形下載按鈕,點擊可下載最後掃到的影片。 根本原因: 使用者希望能把掃描到的動態影片存到手機。 影響: 每次 targetFound 會更新按鈕連結與檔名(配對名稱.副檔名,如 20260707_093628.mp4); 掃到不同照片會切換成該張的影片;按 ✕ 停止掃描時按鈕隱藏。 修法: 新增固定於右下角的 按鈕,targetFound 時設定 href 與 download 屬性並顯示。版本標示 v7。 Co-Authored-By: Claude Fable 5 --- public/index.html | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index fe44980..79377d8 100644 --- a/public/index.html +++ b/public/index.html @@ -32,6 +32,14 @@ width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer; background: rgba(0,0,0,.5); color: #fff; font-size: 18px; display: none; } + #dlBtn { + position: fixed; bottom: 24px; right: 16px; z-index: 1001; + width: 52px; height: 52px; border-radius: 50%; + background: rgba(0,0,0,.55); color: #fff; font-size: 24px; + display: none; align-items: center; justify-content: center; + text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.4); + } + #dlBtn:active { transform: scale(0.94); } a { color: #8fb4ff; } @@ -41,15 +49,17 @@

載入中…

按下開始後,將相機對準已登錄的照片,
對應的影片就會覆蓋在照片上播放。

-

v6

+

v7

+