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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user