From 2e787b885bfea3255521a94e47a73608d38c80d3 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 6 Dec 2023 11:37:07 +0100 Subject: [PATCH] wait #6556 @0:20 --- js/quiz.screen.outro.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/js/quiz.screen.outro.js b/js/quiz.screen.outro.js index 6ede3cd..024b652 100644 --- a/js/quiz.screen.outro.js +++ b/js/quiz.screen.outro.js @@ -22,7 +22,7 @@ QuizScreenOutro.prototype = { $(document).on('click', '.btn.restart', function () { $this.quiz.restart(); }); - $(document).on("mouseover", ".area-item", function() { + $(document).on("mouseover", ".area-item", function () { let quiz = $("#quiz").get(0) let x = (($(this).offset().left + $(this).width()) - quiz.getBoundingClientRect().x), y = (($(this).offset().top - $(this).height()) - quiz.getBoundingClientRect().y) - $(this).height() @@ -32,9 +32,9 @@ QuizScreenOutro.prototype = { left: x, top: y, }) - gsap.to(popup, { autoAlpha: 1 }) - }).on("mouseout", function() { - gsap.to(popup, { autoAlpha: 0 }) + gsap.to(popup, {autoAlpha: 1}) + }).on("mouseout", function () { + gsap.to(popup, {autoAlpha: 0}) }) }, @@ -188,9 +188,11 @@ QuizScreenOutro.prototype = { displayReviewList: function () { let $ul = $("#answers-list"); - if ($ul.length === 0) { + if ($ul.length === 0 || this.quiz.data.review === 'never' || (this.quiz.data.review === 'passed' && !this.quiz.score.isPassed())) { + $(".score-answers-review_container").hide(); return; } + $(".score-answers-review_container").show(); let reviewList = this.quiz.question.getAll(); let status = this.quiz.score.questionStatus @@ -212,8 +214,6 @@ QuizScreenOutro.prototype = { let correctAnswers = review.correctAnswers.length > 0 ? review.correctAnswers : review.data.answers - console.log("review", review) - console.log("correctAnswers", correctAnswers) let titleType = ''; if (review.type === "draganddrop") { -- 2.39.5