From 54d904470f57e1d390b4412defd838c60840bbb6 Mon Sep 17 00:00:00 2001 From: Wruczek Date: Thu, 1 Dec 2016 04:16:47 +0100 Subject: [PATCH] Restricted number of particles on mobile devices --- js/christmas.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/christmas.js b/js/christmas.js index 8517a8d..4d975f3 100644 --- a/js/christmas.js +++ b/js/christmas.js @@ -18,7 +18,7 @@ if (new Date().getMonth() === 11) { // Wait for the snowfall script and jQuery to load window.addEventListener('load', function () { $(document).snowfall({ - flakeCount: 500, + flakeCount: ($(document).width() > 992 ? 500 : 100), flakeIndex: -1, minSize: 4, maxSize: 5,