[mirotalksfu] - automize snow effect

هذا الالتزام موجود في:
Miroslav Pejic
2024-12-15 22:19:39 +01:00
الأصل d00c20bc6a
التزام 9c8df9b7fa
5 ملفات معدلة مع 20 إضافات و16 حذوفات

عرض الملف

@@ -2,7 +2,13 @@
// https://codepen.io/tutsplus/pen/BaVqjvg
const snowEnabled = true;
const now = new Date();
const month = now.getMonth();
const snowEnabled = month === 11 || month === 0;
console.log(`Snow enabled: ${snowEnabled}`);
const snowContainer = document.getElementById('snow-container');