From 4d0ca2f1d2e1baf02fc90a9b3f4ab1e5bdb17454 Mon Sep 17 00:00:00 2001 From: giteaadmin Date: Sun, 26 Apr 2026 07:43:38 +0000 Subject: [PATCH] fix(play): hide question text during quiz_carry embed 3-2-1 countdown - replace countdown overlay question line with hide-only chrome - play.js v=0.094 Made-with: Cursor --- www/html/Game/public/js/play.js | 27 +++++++++------------------ www/html/Game/public/play.html | 2 +- 2 files changed, 10 insertions(+), 19 deletions(-) diff --git a/www/html/Game/public/js/play.js b/www/html/Game/public/js/play.js index 5efab5c..17ebe87 100644 --- a/www/html/Game/public/js/play.js +++ b/www/html/Game/public/js/play.js @@ -1858,12 +1858,8 @@ return !!(previewMode && editorEmbedReturn && isQuizCarry() && quizCarryEmbedCountdownEndAt > Date.now()); } - function hideQuizCarryEmbedCountdownOverlay() { - const ov = document.getElementById('quiz-carry-embed-countdown'); - if (ov) { - ov.classList.add('is-hidden'); - ov.setAttribute('aria-hidden', 'true'); - } + /** นับ 3–2–1: ไม่โชว์ข้อความคำถามใน overlay — มีแค่เลข */ + function hideQuizCarryEmbedCountdownQuestionChrome() { const cq = document.getElementById('quiz-carry-embed-countdown-q'); const ck = document.getElementById('quiz-carry-embed-countdown-kicker'); if (cq) { @@ -1873,18 +1869,13 @@ if (ck) ck.style.display = 'none'; } - /** ข้อความคำถามใน overlay 3–2–1 (กลางจอ — ไม่พึ่งแถบด้านบนที่อาจถูกครอป) */ - function syncQuizCarryEmbedCountdownQuestionLine() { - const cq = document.getElementById('quiz-carry-embed-countdown-q'); - const ck = document.getElementById('quiz-carry-embed-countdown-kicker'); - if (!cq) return; - const pq = quizCarryEmbedPendingQuestion; - const t = pq ? formatQuizCarryQuestionHud(pq).trim() : ''; - cq.textContent = t || '(ยังไม่มีข้อความคำถาม — ตั้ง text / question ใน quizQuestions หรือ carryQuestions)'; - cq.style.display = 'block'; - if (ck) { - ck.style.display = 'block'; + function hideQuizCarryEmbedCountdownOverlay() { + const ov = document.getElementById('quiz-carry-embed-countdown'); + if (ov) { + ov.classList.add('is-hidden'); + ov.setAttribute('aria-hidden', 'true'); } + hideQuizCarryEmbedCountdownQuestionChrome(); } function tickQuizCarryEmbedCountdown() { @@ -1919,7 +1910,7 @@ ov.classList.remove('is-hidden'); ov.setAttribute('aria-hidden', 'false'); } - syncQuizCarryEmbedCountdownQuestionLine(); + hideQuizCarryEmbedCountdownQuestionChrome(); syncQuizCarryEmbedQuestionStrip(); } diff --git a/www/html/Game/public/play.html b/www/html/Game/public/play.html index 6625ec4..2ac3a6d 100644 --- a/www/html/Game/public/play.html +++ b/www/html/Game/public/play.html @@ -765,7 +765,7 @@ - +
v —