update text

This commit is contained in:
Boof 2023-06-01 08:12:58 +02:00 committed by GitHub
parent 7dd65d45d5
commit 16bfccdac1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,9 +9,9 @@ function calculateYearsSince() {
//const hours = Math.floor((diffInMs % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
//const minutes = Math.floor((diffInMs % (1000 * 60 * 60)) / (1000 * 60));
document.getElementById("ageYears").innerText = Math.floor(diffInYears) + " years"
document.getElementById("ageDays").innerText = days + " days"
document.getElementById("ageHours").innerText = hours + " hours"
document.getElementById("ageYears").innerText = Math.floor(diffInYears) + " years,"
document.getElementById("ageDays").innerText = days + " days,"
document.getElementById("ageHours").innerText = hours + " hours and"
document.getElementById("ageMinutes").innerText = minutes + " minutes"
}