This commit is contained in:
Boof 2023-06-09 11:54:54 +02:00 committed by GitHub
parent 4e59e2b14b
commit 5aa2c0e752
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>How old are you in nanoseconds?</title>
<script src="ms.js"></script>
<script src="ms.js" defer></script>
</head>
<body>
<p id="number"></p>

4
ms.js
View File

@ -7,6 +7,4 @@ function calculateYearsSince() {
document.getElementById("number").innerText = diffInNs
}
while (true) {
calculateYearsSince()
}
setInterval(calculateYearsSince, 0)