]> _ Git - fluidbook-toolbox.git/commitdiff
wip #6182 @:10 correction bug fonction stopAnimationValidation
authorsoufiane <soufiane@cubedesigners.com>
Fri, 11 Aug 2023 09:17:49 +0000 (11:17 +0200)
committersoufiane <soufiane@cubedesigners.com>
Fri, 11 Aug 2023 09:17:49 +0000 (11:17 +0200)
resources/quizv2/js/quiz.js

index 96066a6dfe8281e666f99cd25adc037690b3becd..dd28bfd0776e6701d50d93eb6528134484554ae1 100644 (file)
@@ -45,6 +45,8 @@ Quiz.prototype = {
         // ICI tout commence vraiment
         console.log(this.data.theme)
 
+        this.timeoutAnimation = false
+
         //
         //this.animations.triggeredBtn()
 
@@ -255,13 +257,15 @@ Quiz.prototype = {
         let $this = this
         this.animations.load(status, selector, {'\\$text': text});
         selector.addClass("active")
-        setTimeout(function(e){
+        this.timeoutAnimation = setTimeout(function(e){
             $this.stopAnimationValidation()
         }, 10000)
     },
 
-    stopAnimationValidation: () => {
+    stopAnimationValidation: function() {
         $("#anim").removeClass("active").empty()
+        if(this.timeoutAnimation)
+            clearTimeout(this.timeoutAnimation)
     },
 
     resultAfterValidation: function(datas) {