diff --git a/front/src/group.js b/front/src/group.js index dfec5db..350c192 100644 --- a/front/src/group.js +++ b/front/src/group.js @@ -37,7 +37,6 @@ const beginAnswer = () => { chronoBegin=Date.now(); btnSubmit.style.display="block"; - const here=window.location;// window.location à ajouter pour ne pas quitter la page en mode "preview". } let isConnected, user; @@ -138,7 +137,7 @@ myForm.addEventListener("submit", function(e) // Puis on le redirige vers son résultat : window.location.hash=""; const here=window.location;// window.location à ajouter pour ne pas quitter la page en mode "preview"... - window.location.assign(here+"explanations"); + window.location.hash="explanations"; } } xhrSaveAnswer.setRequestHeader("Authorization", "Bearer "+user.token); @@ -159,7 +158,7 @@ myForm.addEventListener("submit", function(e) // Puis on le redirige vers son résultat : window.location.hash=""; const here=window.location;// window.location à ajouter pour ne pas quitter la page en mode "preview"... - window.location.assign(here+"response"); + window.location.hash="response"; } // + Affichage des textes d'explications pour chaque question const explanations=document.querySelectorAll(".help");