this.quiz.animations.load("RUNNINGMAN_BTN", ".active-screen .runningman", '', true);
},
- footer: function(activeScreen) {
+ switchValidateContinueButton: function(activeScreen) {
const $this = this
gsap.timeline().to(".active-screen .footer-question", {
opacity: 0,
})
},
- animate: function (percent) {
+ animate: function (score, percent) {
console.log("percent",percent)
gsap.to(".active-screen #progress-circle", {drawSVG: 0, duration: 0})
gsap.timeline({delay: .4})
duration: 2,
ease: "power4.easeIn"
})
+ .from("#score-counter", {
+ innerText: 0,
+ duration: 2,
+ ease: "power4.easeIn",
+ snap : {
+ innerText: 1
+ }
+ }, "<")
},
show: function () {
const percent = (score/maxScore) * 100
- this.animate(percent)
+ $("[id^=score-]").text(score)
+ this.animate(score,percent)
reviewList = reviewList.map((c, i) => {
return {
})
let $ul = $("#answers-list")
- $("[id^=score-]").text(score)
+ //$("[id^=score-]").text(score)
$("[id^=maxScore-]").text(maxScore)
//
// Disable form, we don't want the user be able to click on items
$(form).addClass('disabled');
- this.quiz.animations.footer(activeScreen)
+ this.quiz.animations.switchValidateContinueButton(activeScreen)
let results = review.answersStatus;