Ouça os áudios e diga o que você percebeu.
Pergunta 1 / 0
Acertos: 0
TOPLAY SOMENTE A PARTIR DA 2ª */
if(userInteracted && idx > 0){
audio.play().catch(()=>{});
}
}
function answer(choice){
if(locked) return;
locked = true;
const correct = QUESTIONS[idx].correct;
[…answers.children].forEach(b=>{
if(b.textContent === correct) b.classList.add(“correct”);
if(b.textContent === choice && choice !== correct) b.classList.add(“wrong”);
b.classList.add(“disabled”);
});
if(choice === correct){
hits++;
$(“hits”).textContent = hits;
}
setTimeout(()=>{
audio.pause();
audio.currentTime = 0;
idx++;
if(idx < QUESTIONS.length){
loadQuestion();
}
}, 900);
}
/* INICIA DIRETO NA PRIMEIRA PERGUNTA */
loadQuestion();
});
Ouça os áudios e diga o que você percebeu.
Pergunta 1 / 0
Acertos: 0