creer const KAHOOT_NB_APRES_LA_VIRGULE_COMPTE_A_REBOURS

front
Gwenael PLANCHON 1 year ago
parent 1b4287aa7f
commit 89b55aa8c2

@ -3,3 +3,6 @@ export const NOM_APP="ScienceQuest"
export const REST_API="https://sae-java.alix-jdlm.fr/api/v1"
export const ALGO_HASH_MDP="SHA-256"
export const KAHOOT_NB_APRES_LA_VIRGULE_COMPTE_A_REBOURS="2"

@ -1,4 +1,5 @@
<script>
import { KAHOOT_NB_APRES_LA_VIRGULE_COMPTE_A_REBOURS} from "@/assets/const"
export default {
data() {
@ -102,12 +103,12 @@ export default {
calculerCompteARebours(){
if(this.tempsLimite<Date.now()){
//si il reste plus de temps
this.compteARebours=(0).toFixed(2)
this.compteARebours=(0).toFixed(KAHOOT_NB_APRES_LA_VIRGULE_COMPTE_A_REBOURS)
//arreter le compte a rebours
window.clearInterval(this.compteAReboursId)
return
}
this.compteARebours=((this.tempsLimite-Date.now())/1000).toFixed(2)
this.compteARebours=((this.tempsLimite-Date.now())/1000).toFixed(KAHOOT_NB_APRES_LA_VIRGULE_COMPTE_A_REBOURS)
},
resetEtats(){

Loading…
Cancel
Save