Restricted number of particles on mobile devices

This commit is contained in:
Wruczek 2016-12-01 04:16:47 +01:00
parent 1dd47199c3
commit 54d904470f
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ if (new Date().getMonth() === 11) {
// Wait for the snowfall script and jQuery to load // Wait for the snowfall script and jQuery to load
window.addEventListener('load', function () { window.addEventListener('load', function () {
$(document).snowfall({ $(document).snowfall({
flakeCount: 500, flakeCount: ($(document).width() > 992 ? 500 : 100),
flakeIndex: -1, flakeIndex: -1,
minSize: 4, minSize: 4,
maxSize: 5, maxSize: 5,