Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdulDavids authored Oct 4, 2023
1 parent 2588247 commit 91b868b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ document.addEventListener('DOMContentLoaded', function() {
const integerPart = Math.floor(totalAgeInYears);
const decimalPart = (totalAgeInYears - integerPart).toFixed(9); // Keep 6 decimal places

stopwatchElement.innerHTML = `<span class="larger">${integerPart}</span> <span class="smaller">.${decimalPart.substring(2)} years</span>`;
stopwatchElement.innerHTML = `<span class="larger">${integerPart}</span> <span class="smaller">.${decimalPart.substring(2)}</span>`;
}, 100);
}
});

0 comments on commit 91b868b

Please sign in to comment.