mirror of
https://gitlab.com/octospacc/octospacc.gitlab.io
synced 2025-02-09 00:18:40 +01:00
Confetti time check fix (needs revision?)
This commit is contained in:
parent
0293db6a8d
commit
3f8f0ad8a7
@ -39,7 +39,7 @@ async function Confetti() {
|
|||||||
function UpdateAge() {
|
function UpdateAge() {
|
||||||
let Years = UnixToYears();
|
let Years = UnixToYears();
|
||||||
CurrentAgeElem.innerHTML = "Currently " + Years + " years old..";
|
CurrentAgeElem.innerHTML = "Currently " + Years + " years old..";
|
||||||
if ((Years % 1 == 0) && (!ConfettiCalled)) {
|
if ((Years % 1 < 0.0000001) && (!ConfettiCalled)) {
|
||||||
Confetti();
|
Confetti();
|
||||||
ConfettiCalled = true;
|
ConfettiCalled = true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user