From: Vincent Vanwaelscappel Date: Wed, 20 Apr 2022 09:44:06 +0000 (+0200) Subject: wip #5186 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=b18c1a80cca97c805ab7dd161b15f5c40de4e495;p=Animations.git wip #5186 @1 --- diff --git a/RedbullShopper101/BubbleQuiz/BubbleQuiz.zip b/RedbullShopper101/BubbleQuiz/BubbleQuiz.zip index f811201..e0c96aa 100644 Binary files a/RedbullShopper101/BubbleQuiz/BubbleQuiz.zip and b/RedbullShopper101/BubbleQuiz/BubbleQuiz.zip differ diff --git a/RedbullShopper101/BubbleQuiz/index.html b/RedbullShopper101/BubbleQuiz/index.html index 147d864..b1fdde0 100644 --- a/RedbullShopper101/BubbleQuiz/index.html +++ b/RedbullShopper101/BubbleQuiz/index.html @@ -27,6 +27,10 @@ pointer-events: none; } + body.results #clear, body.results #submit { + display: none; + } + #buttons, #results { position: absolute; @@ -119,6 +123,7 @@ +
diff --git a/RedbullShopper101/BubbleQuiz/results.pdf b/RedbullShopper101/BubbleQuiz/results.pdf index 4f8f560..88ca0a1 100644 Binary files a/RedbullShopper101/BubbleQuiz/results.pdf and b/RedbullShopper101/BubbleQuiz/results.pdf differ diff --git a/RedbullShopper101/BubbleQuiz/results.svg b/RedbullShopper101/BubbleQuiz/results.svg index cc8cc27..745da2f 100644 --- a/RedbullShopper101/BubbleQuiz/results.svg +++ b/RedbullShopper101/BubbleQuiz/results.svg @@ -755,6 +755,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2928,5 +2976,81 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/RedbullShopper101/VisualTriggers/VisualTriggers.zip b/RedbullShopper101/VisualTriggers/VisualTriggers.zip index 5774d7a..642e577 100644 Binary files a/RedbullShopper101/VisualTriggers/VisualTriggers.zip and b/RedbullShopper101/VisualTriggers/VisualTriggers.zip differ diff --git a/RedbullShopper101/VisualTriggers/visualtriggers.js b/RedbullShopper101/VisualTriggers/visualtriggers.js index b8cebce..96ce158 100644 --- a/RedbullShopper101/VisualTriggers/visualtriggers.js +++ b/RedbullShopper101/VisualTriggers/visualtriggers.js @@ -88,22 +88,24 @@ function setActiveScreen(i) { $("#screen_" + i).addClass('show'); $(".m").remove(); $(".done,.active").removeClass('active').removeClass('done'); - updateScore(); + updateScore(i); } -function updateScore() { - var s = 0; - $.each(window.answers, function (k, v) { - var ok = true; - $.each(v, function (kk, vv) { - if (vv === 'wrong') { - ok = false; +function updateScore(i) { + var t = ''; + + var tot = {2: 4, 4: 5, 6: 3}; + if ([0, 1, 3, 5].indexOf(i) >= 0) { + t = ''; + } else { + var s = 0; + $.each(window.answers[i - 1], function (k, v) { + if (v !== 'wrong') { + s++; } }); - if (ok) { - s++; - } - }); + t = s + '/' + tot[i]; + } - $("#score").text(s + "/3"); + $("#score").text(t); } \ No newline at end of file