Cleanup age calculation feature

This commit is contained in:
octospacc 2022-04-22 10:04:16 +02:00
parent 9a996bc204
commit 6f4b8f5296
2 changed files with 10 additions and 7 deletions

View File

@ -0,0 +1,9 @@
const CurrentAgeElem = document.getElementById("CurrentAge");
const RefreshTime = 50;
function UpdateHTML() {
CurrentAgeElem.innerHTML =
"Currently " + UnixToYears() + " years old..";
}
setInterval(UpdateHTML, RefreshTime);

View File

@ -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>