Want to make creations as awesome as this one?

Transcript

Not correct

erreur

O=

Fe=

Ag=

C=

Au=

He=Helium

Check

//-----VARIABLES UTILISATEUR---- var solution = ["Oxygen","Iron","Silver","Carbon","gold"]; //enter the correct answers var ordre = 1; // 0 or 1 - type 1 if the order of the answers is important var espace = 0 ; //0 or 1 - type 0 if you want spaces at beginning or end to be irrelevant var casse = 0; // 0 or 1 - type 1 if case is relevant (upper/lower case) var correct=1; // 0 or 1 - type 1 to view the errors (in red / green) var tentative=0; // 0 or 1 - type 1 to display the number of attempts (needs compteur on page!) var maxtentative=0; // 0 for unlimited - type in the maximum number of attempts allowed ("tentative" must be at 1) var unefois=0; //0 or 1 - type 1 to prevent restarting during a session (the quiz will be blocked) ("tentative" must be at 1) //------VARIABLES A NE PAS MODIFIER--- function getParent(name) { var pnode = document.getElementById(name).parentNode.parentNode.parentNode; while (pnode.getAttribute('id') == null) { pnode = pnode.parentNode; } pnode = pnode.parentNode.parentNode; return (pnode); } function getTexte(name) { var pnode = getParent(name); if (pnode.querySelector('font')!=null) { var lastDiv=pnode.querySelector('font'); } else if (pnode.querySelector('.genially-view-text').querySelector('div')!=null) { var lastDiv=pnode.querySelector('.genially-view-text').querySelector('div'); } else { var lastDiv=pnode.querySelector('.genially-view-text'); } return lastDiv; } var refparent=document.getElementById('INITcouise').parentNode.parentNode.parentNode.parentNode.parentNode.parentNode; var refpage=refparent.getAttribute('id'); var stop='niet'+refpage; if(sessionStorage.getItem(stop)!=null) {var niet = sessionStorage.getItem(stop);} else {var niet=0} var question; var reponse = []; var faux = 0; if (document.getElementById('boncouise')){var BON = getParent('boncouise');} if (document.getElementById('erreurcouise')){var PASBON = getParent('erreurcouise');} if (document.getElementById('masquecouise')){var MASQUE = getParent('masquecouise');} //--- DISPARITION FENETRE ---- setTimeout(function() { document.getElementsByClassName('icon-close')[0].click() }, 10); document.getElementById('genially-view-modal').style.visibility = "hidden"; //--- RECUPERATION DES REPONSES for (var i = 1; i