]> _ Git - fluidbook-toolbox-quiz.git/commitdiff
wait #6373 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 6 Oct 2023 14:24:52 +0000 (16:24 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 6 Oct 2023 14:24:52 +0000 (16:24 +0200)
js/quiz.score.js
style/101-header-footer.sass

index 9f501a2e456f39e5ee189124614767e886464fbc..80be4958ad1050bb304ea80a52e19093ce7c8cb6 100644 (file)
@@ -103,14 +103,11 @@ QuizScore.prototype = {
                 ok = this_score >= min_score ? 'ok' : 'nok';
                 log.answer = userAnswers;
             } else {
+                ok = 'neutral';
                 log.answer = $(this).find('input,textarea,select').val();
             }
         }
 
-        if (!count) {
-            ok = 'ok';
-        }
-
         this.questionStatus[questionIndex] = {
             ok: ok, answers: answersStatus,
         };
index f14be6fb566a3ea436bb32427041f46562ebe2d6..d4ccbd20ac34496b9051d38d8efa65130604dbe6 100644 (file)
@@ -34,7 +34,7 @@ header
             margin-right: 7px
         &.active
             background-color: $texts-color
-        &.ok
+        &.ok,&.neutral
             background-color: $ok-color
         &.nok
             background-color: $nok-color