Skip to content

Commit

Permalink
agecalc fix 2
Browse files Browse the repository at this point in the history
  • Loading branch information
fab3F committed Apr 28, 2024
1 parent 65d8a96 commit 4d5ca4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/agecalc.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function formatAgeYears(ageYears) {
const parts = ageYears.toString().split('.');
const yearPart = parts[0];
const decimalPart = parts.length > 1 ? '.' + parts[1] : '';
return `<span style="font-size: larger;">${yearPart}</span>${decimalPart}`;
return `<span style="font-size: larger;"><b>${yearPart}</b></span>${decimalPart}`;
}

const today = new Date();
Expand Down

0 comments on commit 4d5ca4a

Please sign in to comment.