2020-12-18 04:13:54 +00:00
|
|
|
// You're kind of ruining the surprise by reading this, but whatever
|
|
|
|
var today = new Date();
|
|
|
|
|
2023-09-19 13:51:19 +00:00
|
|
|
var christmasBegin = new Date(today.getFullYear(), 11, 21);
|
|
|
|
var christmasEnd = new Date(today.getFullYear(), 11, 31);
|
2022-06-28 22:57:30 +00:00
|
|
|
var sf;
|
2020-12-18 04:13:54 +00:00
|
|
|
|
2022-07-26 14:48:33 +00:00
|
|
|
if (today >= christmasBegin && today <= christmasEnd) {
|
|
|
|
console.log("Christmas Activated.");
|
|
|
|
sf = new Snowflakes({ zIndex: -100 });
|
2020-12-18 04:13:54 +00:00
|
|
|
}
|
2020-12-22 02:18:01 +00:00
|
|
|
|
2022-07-26 14:48:33 +00:00
|
|
|
function stopEasterEggs() {
|
|
|
|
if (sf != null) {
|
|
|
|
sf.destroy();
|
|
|
|
}
|
2022-06-28 22:57:30 +00:00
|
|
|
}
|