From 21ae64958b6cf5a49966daf3160003deba27efb0 Mon Sep 17 00:00:00 2001 From: posimai Date: Sun, 19 Apr 2026 14:45:19 +0900 Subject: [PATCH] feat: reorder unit sections, Step1 tap-only advance, replace interrupt with back Made-with: Cursor --- index.html | 123 ++++++++++++++++++++++++++--------------------------- sw.js | 2 +- 2 files changed, 61 insertions(+), 64 deletions(-) diff --git a/index.html b/index.html index 8e2e410..c764eff 100644 --- a/index.html +++ b/index.html @@ -356,6 +356,7 @@ header{display:flex;align-items:center;justify-content:space-between;padding:0 1 .flash-card-front{display:flex;flex-direction:column;align-items:center;gap:10px;width:100%} .flash-card-term{font-size:15px;font-weight:600;color:var(--text);line-height:1.45;letter-spacing:-.01em} .flash-card-hint{font-size:11px;color:var(--text3);letter-spacing:.04em} +.flash-card-hint-footer{margin-top:10px;width:100%} .flash-card-back{font-size:13px;color:var(--text);line-height:1.75;padding-top:12px;border-top:1px solid var(--border);width:100%;margin-top:0;text-align:left} .step-count{font-size:10px;color:var(--text3);text-align:center;margin-bottom:10px;letter-spacing:.04em} .s2choice{display:flex;gap:10px;margin-bottom:10px} @@ -509,8 +510,8 @@ header{display:flex;align-items:center;justify-content:space-between;padding:0 1 弱点集中特訓 @@ -600,6 +601,51 @@ header{display:flex;align-items:center;justify-content:space-between;padding:0 1 + +
+
+ + 概念解説 +
+
+
+ +
+ + +
+
+ + 重要ポイント +
+ +
+ + +
+
+ + 試験対策メモ +
+ +
+
-
@@ -634,20 +680,16 @@ header{display:flex;align-items:center;justify-content:space-between;padding:0 1 Step 1 — 用語確認
-
+
タップして全文を表示
-
-
- +
@@ -698,50 +740,6 @@ header{display:flex;align-items:center;justify-content:space-between;padding:0 1 - -
-
- - 概念解説 -
-
-
- -
- - -
-
- - 試験対策メモ -
- -
- -
-
- - 重要ポイント -
- -
-
@@ -1586,14 +1584,13 @@ function bokiApp(){ resetFlashRevealState(){ this.stepFlashRevealed=!this.keypointHasFlip(this.stepKpIdx); }, - revealFlash(){ - if(!this.keypointHasFlip(this.stepKpIdx)){ + advanceStep1Card(){ + if(this.stepStep!==1) return; + if(this.keypointHasFlip(this.stepKpIdx)&&!this.stepFlashRevealed){ + this.stepFlashRevealed=true; return; } - if(this.stepFlashRevealed){ - return; - } - this.stepFlashRevealed=true; + this.nextStepFlash(); }, nextStepFlash(){ const kps=this.currentUnit?.keypoints||[]; diff --git a/sw.js b/sw.js index 6ee6b5d..2e02b93 100644 --- a/sw.js +++ b/sw.js @@ -1,5 +1,5 @@ // posimai-boki SW — stale-while-revalidate + skipWaiting -const CACHE = 'posimai-boki-v12'; +const CACHE = 'posimai-boki-v13'; const STATIC = ['/', '/index.html', '/manifest.json', '/logo.png']; self.addEventListener('install', e => {