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>
|
</div>
|
||||||
<br><br><br>
|
<br><br><br>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script src="Assets/JS/CurrentAgeRenderIndex.js"></script>
|
||||||
const CurrentAgeElem = document.getElementById("CurrentAge");
|
|
||||||
const CurrentAgeRefresh = 50;
|
|
||||||
setInterval(
|
|
||||||
function() {CurrentAgeElem.innerHTML = "Currently " + UnixToYears() + ".."},
|
|
||||||
CurrentAgeRefresh);
|
|
||||||
</script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue