From 7930c1236b36de31104d5befa2adccb989b907ae Mon Sep 17 00:00:00 2001 From: "gwenael.planchon" Date: Wed, 20 Mar 2024 09:12:29 +0100 Subject: [PATCH] demarrer le compte a rebours quand la partie va commencer --- science-quest/src/components/jeux/kahoot/KahootPartie.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/science-quest/src/components/jeux/kahoot/KahootPartie.vue b/science-quest/src/components/jeux/kahoot/KahootPartie.vue index 82fac0a..25f1c9d 100644 --- a/science-quest/src/components/jeux/kahoot/KahootPartie.vue +++ b/science-quest/src/components/jeux/kahoot/KahootPartie.vue @@ -80,6 +80,8 @@ export default { this.tempsLimite=response.tempsLimite if(this.partieDemarree){ window.setTimeout(this.obtenirQuestion,(this.tempsLimite+100)-Date.now()) + //demarrer le compte a rebours + this.compteAReboursId=window.setInterval(this.calculerCompteARebours,22) } else { window.setTimeout(this.obtenirSalleAttente,(this.tempsLimite+100)-Date.now()) } @@ -130,7 +132,7 @@ export default { { "joueurs":["Moi","Titouan"], "partieDemarree":true, - "tempsLimite":${Date.now()+this.DEBUG_temps /* maintenant + 10 secondes le temps de regarder les scores*/} + "tempsLimite":${Date.now()+this.DEBUG_temps /* maintenant + 1 seconde*/} } `) },