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 @@ - +