Payload set to about 1d
This commit is contained in:
parent
3f8f0ad8a7
commit
e4c2394cf3
|
@ -3,6 +3,7 @@ const RefreshTime = 50;
|
||||||
|
|
||||||
const ConfettiSleep = 600;
|
const ConfettiSleep = 600;
|
||||||
const ConfettiIter = 32;
|
const ConfettiIter = 32;
|
||||||
|
const ConfettiExec = 0.00275; // Exec payload for ~1 day from event
|
||||||
|
|
||||||
var ConfettiCalled = false;
|
var ConfettiCalled = false;
|
||||||
|
|
||||||
|
@ -39,7 +40,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.0000001) && (!ConfettiCalled)) {
|
if ((Years % 1 < ConfettiExec) && (!ConfettiCalled)) {
|
||||||
Confetti();
|
Confetti();
|
||||||
ConfettiCalled = true;
|
ConfettiCalled = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue