Restricted number of particles on mobile devices
This commit is contained in:
parent
1dd47199c3
commit
54d904470f
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue