Payload set to about 1d

This commit is contained in:
octospacc 2022-04-23 09:12:21 +02:00
parent 3f8f0ad8a7
commit e4c2394cf3
1 changed files with 2 additions and 1 deletions

View File

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