From 5a7e118f80d4044ab27cc6840b75113ccb0e53de Mon Sep 17 00:00:00 2001 From: salam Date: Mon, 15 Jun 2026 11:16:05 +0200 Subject: [PATCH] fix2 wip --- public/js/app/number-animator.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/public/js/app/number-animator.js b/public/js/app/number-animator.js index 68999fe7..6b0d57dc 100644 --- a/public/js/app/number-animator.js +++ b/public/js/app/number-animator.js @@ -21,13 +21,15 @@ function animate(element, end, duration = 500, fixtotwo) { // Calculate current value and round to integer const currentCount = Math.round(end * easedProgress * 100) / 100; - if (fixtotwo) { - console.log("fix2"); - element.innerHTML = currentCount.toFixed(2); - } else { - console.log("fixNone"); - element.innerHTML = currentCount; - } + element.innerHTML = currentCount.toFixed(2); + + // if (fixtotwo) { + // console.log("fix2"); + // element.innerHTML = currentCount.toFixed(2); + // } else { + // console.log("fixNone"); + // element.innerHTML = currentCount; + // } if (progress < 1) { requestAnimationFrame(updateCount);