mirror of
https://gitlab.com/octospacc/octospacc.gitlab.io
synced 2025-06-05 21:59:15 +02:00
Payload set to about 1d
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user