mirror of
https://gitlab.com/octospacc/octospacc.gitlab.io
synced 2025-06-05 21:59:15 +02:00
Cleanup age calculation feature
This commit is contained in:
9
public/Assets/JS/CurrentAgeRenderIndex.js
Normal file
9
public/Assets/JS/CurrentAgeRenderIndex.js
Normal file
@@ -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>
|
||||
|
Reference in New Issue
Block a user