mirror of
https://github.com/OpenFusionProject/Client.git
synced 2024-11-14 02:30:05 +00:00
18 lines
444 B
JavaScript
18 lines
444 B
JavaScript
// You're kind of ruining the surprise by reading this, but whatever
|
|
var today = new Date();
|
|
|
|
var christmasBegin = new Date(today.getFullYear(), 11, 21);
|
|
var christmasEnd = new Date(today.getFullYear(), 11, 31);
|
|
var sf;
|
|
|
|
if (today >= christmasBegin && today <= christmasEnd) {
|
|
console.log("Christmas Activated.");
|
|
sf = new Snowflakes({ zIndex: -100 });
|
|
}
|
|
|
|
function stopEasterEggs() {
|
|
if (sf != null) {
|
|
sf.destroy();
|
|
}
|
|
}
|