From: Vincent Vanwaelscappel Date: Thu, 14 Jan 2021 08:26:21 +0000 (+0100) Subject: wait #4194 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=591bea2e2215345b3b64f20bff9da4e4b9da023e;p=Animations.git wait #4194 @0.5 --- diff --git a/RedbullResilience/p3-test/complete-ok.svg b/RedbullResilience/p3-test/complete-ok.svg index d047a65..9dfa8e0 100644 --- a/RedbullResilience/p3-test/complete-ok.svg +++ b/RedbullResilience/p3-test/complete-ok.svg @@ -1,5 +1,5 @@ - + @@ -68,768 +68,100 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - + - - - - - - - - - - - - - - - + - + - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - diff --git a/RedbullResilience/p3-test/complete.svg b/RedbullResilience/p3-test/complete.svg index 04231a4..864142c 100644 --- a/RedbullResilience/p3-test/complete.svg +++ b/RedbullResilience/p3-test/complete.svg @@ -1,5 +1,5 @@ - + @@ -77,914 +77,411 @@ - + + + + + + + + + + - - + + + + + - - + + + + + - - + + - - + + - - + + - - + + - + + + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - + - - - - + - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + diff --git a/RedbullResilience/p3-test/index.html b/RedbullResilience/p3-test/index.html index 632082f..cda010a 100644 --- a/RedbullResilience/p3-test/index.html +++ b/RedbullResilience/p3-test/index.html @@ -45,6 +45,17 @@ cursor: pointer; } + #retake { + display: none; + position: absolute; + z-index: 20; + left: 144px; + top: 454px; + width: 144px; + height: 53px; + cursor: pointer; + } + #ok { left: 209px; } @@ -104,6 +115,7 @@
+
@@ -154,6 +166,11 @@ return false; }); + $(document).on('click',"#retake",function(){ + retake(); + return false; + }); + $(document).on('click', '#ok,#nok', function () { var side = $("#questions img:eq(" + currentIndex + ")").data('ok'); if (($(this).is('#ok') && side === 'r') || (!$(this).is('#ok') && side === 'l')) { @@ -172,6 +189,7 @@ if (currentIndex >= 9) { $("#ok,#nok").hide(); + $("#retake").show(); displayResults(); var hasNok = false; $.each(answers, function (k, v) { @@ -179,14 +197,16 @@ hasNok = true; } }); - if (hasNok) { - $("#complete").addClass('visible'); - } else { - $("#complete-ok").addClass('visible'); - } + // if (hasNok) { + // $("#complete").addClass('visible'); + // } else { + // $("#complete-ok").addClass('visible'); + // } + $("#complete").addClass('visible'); } else { $("#questions img:eq(" + currentIndex + ")").addClass('visible'); $("#ok,#nok").show(); + $("#retake").hide(); } } @@ -201,6 +221,11 @@ }); } + function retake() { + localStorage.setItem(storageKey, '[]'); + window.location.reload(); + } + function saveAnswers() { localStorage.setItem(storageKey, JSON.stringify(answers)); } diff --git a/RedbullResilience/p3-test/p3-test.zip b/RedbullResilience/p3-test/p3-test.zip index d235eba..85bd382 100644 Binary files a/RedbullResilience/p3-test/p3-test.zip and b/RedbullResilience/p3-test/p3-test.zip differ diff --git a/RedbullResilience/p3-test/retake.pdf b/RedbullResilience/p3-test/retake.pdf new file mode 100644 index 0000000..be329f2 Binary files /dev/null and b/RedbullResilience/p3-test/retake.pdf differ