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
This commit is contained in:
2026-04-26 07:43:38 +00:00
parent 8ca841364a
commit 4d0ca2f1d2
2 changed files with 10 additions and 19 deletions
+9 -18
View File
@@ -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();
}
+1 -1
View File
@@ -765,7 +765,7 @@
</div>
<script src="/Game/socket.io/socket.io.js"></script>
<script src="js/version.js?v=0.0166"></script>
<script src="js/play.js?v=0.093"></script>
<script src="js/play.js?v=0.094"></script>
<div class="version-tag">v —</div>
</body>
</html>