From 9ab006a8d2e6673061e7690a5221a70c3bfa108b Mon Sep 17 00:00:00 2001 From: zyqunix <117040076+zyqunix@users.noreply.github.com> Date: Fri, 6 Jun 2025 01:01:13 +0200 Subject: [PATCH] Update index.js --- assets/js/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/index.js b/assets/js/index.js index 1cb6f12..91a88a1 100644 --- a/assets/js/index.js +++ b/assets/js/index.js @@ -28,14 +28,14 @@ const updateAge = () => { const now = new Date(); const diff = now.getTime() - birthday.getTime(); age = diff / (1000 * 60 * 60 * 24 * 365.25); - ageElem.innerHTML = `${age} years old`; + ageElem.innerHTML = `${age.toFixed(10)} years old`; } updateAge(); const timeInterval = setInterval(() => { updateAge(); -}, 10); +}, 100); function lan() { lanyard({