// CETTE PAGE PROGRAMME LE QUIZZ AVEC REINITIALISATION AU BOUT D'UN CERTAIN TEMPS (DESACTIVE AVEC 5 x //) // TROUVE SUR : https://stackoverflow.com/questions/49999660/changing-text-using-a-button-click-in-html PUIS LARGEMENT MODIFIE function changeText1() // S'IL Y A DEJA LA REPONSE, REINITIALISER { // NOTER QUE LE "É" DE "RÉPONSE" ICI NE DOIT PAS ETRE CODE, SINON EN OCTAL !!! if (document.getElementById('chgtext').innerText == "Mauvaise r\u00e9ponse") {document.getElementById('F1').innerHTML = "\u25b6"; document.getElementById('chgtext').innerHTML = "Cliquer sur la bonne r\u00e9ponse";} // LE TRIANGLE N'A PAS D'ÉQUIVALENT CONNU EN OCTAL else { document.getElementById('chgtext').innerHTML = "Mauvaise r\u00e9ponse"; // SINON EXECUTER LA REPONSE + LES 3 FLECHES document.getElementById('F1').innerHTML = "\u25bc"; document.getElementById('F2').innerHTML = "\u25b6"; document.getElementById('F3').innerHTML = "\u25b6"; //setTimeout(function () { // APRES X SECONDES, REINITIALISER (DESACTIVE AVEC 5 x //) //document.getElementById('chgtext').innerHTML = "Cliquer sur la bonne r\u00e9ponse" //document.getElementById('F1').innerHTML = "\u25b6"; //document.getElementById('F2').innerHTML = "\u25b6"; //document.getElementById('F3').innerHTML = "\u25b6";}, 20000) //ICI DES MILLISECONDES } } function changeText2() { if (document.getElementById('chgtext').innerText == "Bonne r\u00e9ponse") {document.getElementById('F2').innerHTML = "\u25b6"; document.getElementById('chgtext').innerHTML = "Cliquer sur la bonne r\u00e9ponse";} else { document.getElementById('chgtext').innerHTML = "Bonne r\u00e9ponse"; document.getElementById('F1').innerHTML = "\u25b6"; document.getElementById('F2').innerHTML = "\u25bc"; document.getElementById('F3').innerHTML = "\u25b6"; //setTimeout(function () { // (DESACTIVE AVEC 5 x //) //document.getElementById('chgtext').innerHTML = "Cliquer sur la bonne r\u00e9ponse" //document.getElementById('F1').innerHTML = "\u25b6"; //document.getElementById('F2').innerHTML = "\u25b6"; //document.getElementById('F3').innerHTML = "\u25b6";}, 20000) //ici des millisecondes } } function changeText3() { if (document.getElementById('chgtext').innerText == "R\u00e9ponse mauvaise") {document.getElementById('F3').innerHTML = "\u25b6"; document.getElementById('chgtext').innerHTML = "Cliquer sur la bonne r\u00e9ponse";} else { document.getElementById('chgtext').innerHTML = "R\u00e9ponse mauvaise"; document.getElementById('F1').innerHTML = "\u25b6"; document.getElementById('F2').innerHTML = "\u25b6"; document.getElementById('F3').innerHTML = "\u25bc"; //setTimeout(function () { // (DESACTIVE AVEC 5 x //) //document.getElementById('chgtext').innerHTML = "Cliquer sur la bonne r\u00e9ponse" //document.getElementById('F1').innerHTML = "\u25b6"; //document.getElementById('F2').innerHTML = "\u25b6"; //document.getElementById('F3').innerHTML = "\u25b6";}, 20000) //ici des millisecondes } } // POUR RÉINITIALISER À PARTIR DE LA ZONE DE RÉPONSE function redevenir() {document.getElementById("chgtext").innerHTML = "Cliquer sur la bonne r\u00e9ponse"; document.getElementById('F1').innerHTML = "\u25b6"; document.getElementById('F2').innerHTML = "\u25b6"; document.getElementById('F3').innerHTML = "\u25b6";} // -->