const $this = this;
let screenToShow = $('[data-screen="' + screen + '"]');
this.hideCurrentScreen(function () {
+ $this.resetCountdownBackground()
screenToShow.removeClass("none").addClass("next active-screen");
if (callback !== undefined) {
callback();
opacity: 1,
ease: "circ.out",
onComplete: function () {
- // if countdown enable
+ // if countdown enable we launch it
if($this.quiz.question.current() !== undefined) {
if (parseInt($this.quiz.question.current().countdown_enable)) {
$this.countdown()
this.runningManTimeout = setTimeout(() => {
$this.quiz.animations.runningMan()
$(".active-screen .runningman").css("opacity", 1)
- }, 350)
+ }, 250)
this.intervalCountDown = setInterval(function () {
value -= (10 / time) * 100
}
}, 10)
},
+
+ resetCountdownBackground: function() {
+ document.documentElement.style.setProperty("--width-bg-countdown", "100%")
+ }
};
export default QuizScreens;