JS oopsie

This commit is contained in:
Octo Andri 2022-04-17 17:30:24 +00:00
parent 68ca55cd48
commit f3cbde885f
1 changed files with 2 additions and 2 deletions

View File

@ -35,10 +35,10 @@
<br><br><br>
</div>
<script>
var CurrentAgeText = document.getElementById("CurrentAge").innerHTML;
const CurrentAgeElem = document.getElementById("CurrentAge");
const CurrentAgeRefresh = 50;
setInterval(
function() {CurrentAgeText = "Currently " + UnixToYears() + ".."},
function() {CurrentAgeElem.innerHTML = "Currently " + UnixToYears() + ".."},
CurrentAgeRefresh);
</script>
</body>