📖 Conjuguez les verbes au passé composé (2ème groupe)
Temps restant : 5:00
let exercices = [
{ phrase: “Je/J’ (finir)”, reponse: “ai fini” },
{ phrase: “Tu (choisir)”, reponse: “as choisi” },
{ phrase: “Il/Elle (réfléchir)”, reponse: “a réfléchi” },
{ phrase: “Nous (applaudir)”, reponse: “avons applaudi” },
{ phrase: “Vous (remplir)”, reponse: “avez rempli” },
{ phrase: “Ils/Elles (grossir)”, reponse: “ont grossi” },
{ phrase: “Je (bondir)”, reponse: “ai bondi” },
{ phrase: “Tu (guérir)”, reponse: “as guéri” },
{ phrase: “Il/Elle (salir)”, reponse: “a sali” },
{ phrase: “Nous (obéir)”, reponse: “avons obéi” }
];
function afficherQuestions() {
let quizDiv = document.getElementById(“quiz”);
let html = “”;
exercices.forEach((q, index) => {
html += `
${index + 1}. ${q.phrase}
`;
});
quizDiv.innerHTML = html;
}
function verifier() {
let score = 0;
exercices.forEach((q, index) => {
let reponse = document.getElementById(`q${index}`).value.trim().toLowerCase();
if (reponse === q.reponse) {
score++;
document.getElementById(“correctSound”).play();
} else {
document.getElementById(“incorrectSound”).play();
}
});
document.getElementById(“score”).innerText = `🎯 Score : ${score}/10`;
}
let timeLeft = 300;
function countdown() {
let minutes = Math.floor(timeLeft / 60);
let seconds = timeLeft % 60;
document.getElementById(“timer”).innerText = ` Temps restant : ${minutes}:${seconds 0) {
timeLeft–;
setTimeout(countdown, 1000);
} else {
document.getElementById(“timesUpSound”).play();
alert(“⏳ Temps écoulé ! Soumettez vos réponses.”);
}
}
afficherQuestions();
countdown();