mirror of
https://github.com/hexahigh/080609.git
synced 2025-12-11 19:55:06 +01:00
s
This commit is contained in:
parent
16bfccdac1
commit
6294f21a1f
@ -12,7 +12,7 @@
|
||||
|
||||
<body>
|
||||
<div style="text-align: center;">
|
||||
<p>If you were born on the 8th of June 2009 you would be</p>
|
||||
<p>If you were born on the 8th of June 2009 then you are</p>
|
||||
<h3 id="ageYears"></h3>
|
||||
<h3 id="ageDays"></h3>
|
||||
<h3 id="ageHours"></h3>
|
||||
|
||||
6
index.js
6
index.js
@ -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 and"
|
||||
document.getElementById("ageYears").innerText = Math.floor(diffInYears) + " years"
|
||||
document.getElementById("ageDays").innerText = days + " days"
|
||||
document.getElementById("ageHours").innerText = hours + " hours"
|
||||
document.getElementById("ageMinutes").innerText = minutes + " minutes"
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user