00:04:12.000 --> 00:04:16.000 X-SHELDON-TRIVIA: “Quantum tunneling” – particles can pass through barriers!
00:04:16.500 --> 00:04:20.500 X-SHELDON-QUIZ: What does tunneling allow? A) Faster-than-light travel B) Passing through walls C) Time travel D) None of the above young sheldon s05e09 720p web h264
const txt = cue.text; if (txt.startsWith('X-SHELDON-TRIVIA')) quizDiv.textContent = txt.split('\n')[1]; // show trivia quizDiv.style.display = 'block'; else if (txt.startsWith('X-SHELDON-QUIZ')) // Simple yes/no demo quizDiv.innerHTML = ` <p>$txt.split('\n')[1]</p> <button onclick="score()">B) Passing through walls</button> `; else if (txt.startsWith('X-SHELDON-FACT')) alert(txt.split('\n')[1]); // quick fact popup ); 00:04:12
WEBVTT
track.addEventListener('cuechange', () => const cue = track.activeCues[0]; if (!cue) return; // show trivia quizDiv.style.display = 'block'
<div id="quiz"></div> <div id="badge">🏆 +10</div>
track.mode = 'hidden'; // we’ll read cues manually