From: Vincent Vanwaelscappel Date: Thu, 14 Jan 2021 09:36:05 +0000 (+0100) Subject: wip #4195 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=ae0f760d6b932412399ba4d712c365a9531987dd;p=Animations.git wip #4195 @0.25 --- diff --git a/RedbullResilience/p3-test/index.html b/RedbullResilience/p3-test/index.html index cda010a..6f44ecd 100644 --- a/RedbullResilience/p3-test/index.html +++ b/RedbullResilience/p3-test/index.html @@ -79,7 +79,7 @@ #results td.visible { background-image: url("res.jpg"); - border: 2px solid #d7104e; + border: 5px solid #d7104e; } #results td.c2 { @@ -166,9 +166,9 @@ return false; }); - $(document).on('click',"#retake",function(){ - retake(); - return false; + $(document).on('click', "#retake", function () { + retake(); + return false; }); $(document).on('click', '#ok,#nok', function () { @@ -213,16 +213,21 @@ function displayResults() { $("#results").show(); console.log(answers); + var tabsClasses = {}; $.each(answers, function (k, v) { var section = $("#questions img:eq(" + k + ")").data('section'); if (v == 0) { $("#results td[data-section='" + section + "']").addClass('visible'); } + tabsClasses[section] = v == 0 ? 'blue' : ''; }); + parent.fluidbook.cache.set('tabsClasses', JSON.stringify(tabsClasses)); + parent.fluidbook.tabs.updateClasses(); } function retake() { localStorage.setItem(storageKey, '[]'); + parent.fluidbook.cache.unset('tabsClasses'); window.location.reload(); } diff --git a/RedbullResilience/p3-test/p3-test.zip b/RedbullResilience/p3-test/p3-test.zip index 85bd382..92fa344 100644 Binary files a/RedbullResilience/p3-test/p3-test.zip and b/RedbullResilience/p3-test/p3-test.zip differ diff --git a/RedbullResilience/tabs.svg b/RedbullResilience/tabs.svg index 726ea87..d3afa8b 100644 --- a/RedbullResilience/tabs.svg +++ b/RedbullResilience/tabs.svg @@ -1,17 +1,17 @@ - + - + - - @@ -19,74 +19,74 @@ - + - + - - + s0.8-3,0.8-5.7c0-2.5-0.3-4.2-0.9-5.2s-1.5-1.5-2.8-1.5c-1.1,0-2.1,0.3-3.1,0.8C18.6,345.4,18.5,346.8,18.5,348.3z"/> - - + c-0.7,0.2-1.4,0.5-2,0.8l-0.7-0.4l0.9-12.1H30v4.5H17l-0.6,6.8c0.6-0.4,1.4-0.9,2.4-1.3s2.1-0.6,3.2-0.6c1.7,0,3.2,0.3,4.5,0.9 + s2.4,1.5,3.1,2.7s1.1,2.6,1.1,4.3c0,1.8-0.4,3.2-1.3,4.5c-0.9,1.2-2.1,2.2-3.6,2.8C24.6,296.1,22.9,296.4,20.9,296.4z"/> - - + - - - - + v4.5H14.4v-3.3c0.9-0.9,1.9-1.8,2.8-2.7s1.8-1.8,2.6-2.6c1.9-1.9,3.3-3.7,4.2-5.2c0.9-1.5,1.4-3.1,1.4-4.9s-0.3-3.3-1-4.4 + s-1.6-1.7-2.9-1.7c-0.8,0-1.6,0.2-2.3,0.6c-0.7,0.4-1.3,1.1-1.8,2.1l-1.9,3.7C15.5,87.7,15.1,87.7,15.1,87.7z"/> - - + - + + + + + + + +