mirror of
https://gitlab.com/octospacc/octospacc.gitlab.io
synced 2025-01-22 22:40:19 +01:00
Cleanup age calculation feature
This commit is contained in:
parent
9a996bc204
commit
6f4b8f5296
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>
|
||||
|
Loading…
Reference in New Issue
Block a user