From 84c691827383f64702eb3e48e644edf41b5738f7 Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Tue, 7 May 2024 11:04:36 +0200 Subject: [PATCH] [mirotalk] - update snow --- public/js/snow.js | 4 ++++ public/views/landing.html | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/public/js/snow.js b/public/js/snow.js index e6da3eed..a1b41cda 100644 --- a/public/js/snow.js +++ b/public/js/snow.js @@ -2,6 +2,8 @@ // https://codepen.io/tutsplus/pen/BaVqjvg +const snowEnabled = false; + const snowContainer = document.getElementById('snow-container'); const snowContent = ['❄', '❅', '❆']; @@ -41,10 +43,12 @@ const removeSnow = () => { }; window.addEventListener('load', () => { + if (!snowEnabled) return; createSnow(30); setTimeout(removeSnow, 1000 * 60); }); window.addEventListener('click', () => { + if (!snowEnabled) return; removeSnow(); }); diff --git a/public/views/landing.html b/public/views/landing.html index be085276..7e79b280 100755 --- a/public/views/landing.html +++ b/public/views/landing.html @@ -49,8 +49,8 @@ - + +