</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)';
document.addEventListener("DOMContentLoaded", function () {
update();
- setInterval(update, 500);
+ setInterval(function () {
+ update();
+ }, 500);
});
</script>