Cleanup age calculation feature
This commit is contained in:
parent
9a996bc204
commit
6f4b8f5296
|
@ -0,0 +1,9 @@
|
|||
const CurrentAgeElem = document.getElementById("CurrentAge");
|
||||
const RefreshTime = 50;
|
||||
|
||||
function UpdateHTML() {
|
||||
CurrentAgeElem.innerHTML =
|
||||
"Currently " + UnixToYears() + " years old..";
|
||||
}
|
||||
|
||||
setInterval(UpdateHTML, RefreshTime);
|
|
@ -36,12 +36,6 @@
|
|||
</div>
|
||||
<br><br><br>
|
||||
</div>
|
||||
<script>
|
||||
const CurrentAgeElem = document.getElementById("CurrentAge");
|
||||
const CurrentAgeRefresh = 50;
|
||||
setInterval(
|
||||
function() {CurrentAgeElem.innerHTML = "Currently " + UnixToYears() + ".."},
|
||||
CurrentAgeRefresh);
|
||||
</script>
|
||||
<script src="Assets/JS/CurrentAgeRenderIndex.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in New Issue