From 0586ecd2c3a14b87d096c51a3a8191f309bdee8f Mon Sep 17 00:00:00 2001 From: salam Date: Mon, 15 Jun 2026 11:02:51 +0200 Subject: [PATCH] wip --- public/js/app/number-animator.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/public/js/app/number-animator.js b/public/js/app/number-animator.js index bf5b3d77..666fb6a8 100644 --- a/public/js/app/number-animator.js +++ b/public/js/app/number-animator.js @@ -21,11 +21,12 @@ function animate(element, end, duration = 500, fixtotwo = false) { // Calculate current value and round to integer const currentCount = Math.round(end * easedProgress * 100) / 100; - if (fixtotwo) { - element.innerHTML = currentCount.toFixed(2); - } else { - element.innerHTML = currentCount; - } + // if (fixtotwo) { + // element.innerHTML = currentCount.toFixed(2); + // } else { + // element.innerHTML = currentCount; + // } + element.innerHTML = currentCount.toFixed(2); if (progress < 1) { requestAnimationFrame(updateCount);