]> _ Git - Animations.git/commitdiff
wip #5206 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 31 Mar 2022 15:50:34 +0000 (17:50 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 31 Mar 2022 15:50:34 +0000 (17:50 +0200)
ThermofisherProgressbar/ThermofisherProgressbar.zip
ThermofisherProgressbar/index.html

index 989ba3a072309a0d302d797473dc47eac2eafbe0..208ff2945752cc94fe7ab58bc9e4612589042d2c 100644 (file)
Binary files a/ThermofisherProgressbar/ThermofisherProgressbar.zip and b/ThermofisherProgressbar/ThermofisherProgressbar.zip differ
index a8e9150012f0eef68e7d76128ba926cd46827d66..3d0f26c9d6170e76704d8f2074ef7e5e67e4d3b0 100644 (file)
@@ -31,6 +31,8 @@
 
     </style>
     <script>
+        var congratLaunched = false;
+
         function round(num) {
             return Math.round((num + Number.EPSILON) * 100) / 100;
         }
 
             }
 
+            if (coins === 8 && !congratLaunched) {
+                try {
+                    parent.fluidbook.links.triggerLinkById('congratulations');
+                    congratLaunched = true;
+                } catch (e) {
+
+                }
+            }
+
 
             var clipLeft = Math.round(window.innerWidth * (x[coins] / 215)) + "px";
             var clipPath = 'rect(0px,' + clipLeft + ',' + (window.innerHeight) + 'px,0px)';
@@ -52,7 +63,9 @@
 
         document.addEventListener("DOMContentLoaded", function () {
             update();
-            setInterval(update, 500);
+            setInterval(function () {
+                update();
+            }, 500);
         });
 
     </script>