From d3941c6a91b948febd2875cc2eac2d5089a6f9e8 Mon Sep 17 00:00:00 2001 From: salam Date: Mon, 15 Jun 2026 11:03:29 +0200 Subject: [PATCH] wip --- public/js/app/number-animator.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/public/js/app/number-animator.js b/public/js/app/number-animator.js index 666fb6a8..bf5b3d77 100644 --- a/public/js/app/number-animator.js +++ b/public/js/app/number-animator.js @@ -21,12 +21,11 @@ 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; - // } - element.innerHTML = currentCount.toFixed(2); + if (fixtotwo) { + element.innerHTML = currentCount.toFixed(2); + } else { + element.innerHTML = currentCount; + } if (progress < 1) { requestAnimationFrame(updateCount);