diff --git a/snowflakes.js b/snowflakes.js index 3a633a3..9b5369d 100644 --- a/snowflakes.js +++ b/snowflakes.js @@ -1,3 +1,4 @@ +const snowflakes = true; // enable/disable snowflakes const randomSnowflakes = true; // enable random Snowflakes const snowflakeCount = 25; // count of random extra snowflakes @@ -75,6 +76,7 @@ function addRandomSnowflakes(count) { // initialize snowflakes and add random snowflakes after the DOM is loaded document.addEventListener('DOMContentLoaded', () => { + if (!snowflakes) return; // exit if snowflakes are disabled toggleSnowflakes(); const screenWidth = window.innerWidth; // get the screen width to detect mobile devices