[mirotalk] - update snow

This commit is contained in:
Miroslav Pejic
2024-05-07 11:04:36 +02:00
parent 45559f0395
commit 84c6918273
2 changed files with 6 additions and 2 deletions
+4
View File
@@ -2,6 +2,8 @@
// https://codepen.io/tutsplus/pen/BaVqjvg
const snowEnabled = false;
const snowContainer = document.getElementById('snow-container');
const snowContent = ['&#10052', '&#10053', '&#10054'];
@@ -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();
});
+2 -2
View File
@@ -49,8 +49,8 @@
<!-- Snow effects -->
<!-- <link rel="stylesheet" href="../css/snow.css" />
<script defer src="../js/snow.js"></script> -->
<link rel="stylesheet" href="../css/snow.css" />
<script defer src="../js/snow.js"></script>
<!-- JavaScripts -->