mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Disable snow animation for mobile devices
This commit is contained in:
parent
17b2afcf22
commit
7e0a1500a6
2 changed files with 13 additions and 4 deletions
|
|
@ -1 +1 @@
|
||||||
1.0
|
1.1
|
||||||
|
|
@ -2,8 +2,17 @@
|
||||||
$(function () {
|
$(function () {
|
||||||
if (window.snowFall && !window.rl.settingsGet('Auth'))
|
if (window.snowFall && !window.rl.settingsGet('Auth'))
|
||||||
{
|
{
|
||||||
window.snowFall.snow(document.getElementsByTagName('body'), {
|
var
|
||||||
shadow: true, round: true, minSize: 2, maxSize: 5
|
sUserAgent = (navigator.userAgent || '').toLowerCase(),
|
||||||
});
|
bIsiOSDevice = -1 < sUserAgent.indexOf('iphone') || -1 < sUserAgent.indexOf('ipod') || -1 < sUserAgent.indexOf('ipad'),
|
||||||
|
bIsAndroidDevice = -1 < sUserAgent.indexOf('android')
|
||||||
|
;
|
||||||
|
|
||||||
|
if (!bIsiOSDevice && !bIsAndroidDevice)
|
||||||
|
{
|
||||||
|
window.snowFall.snow(document.getElementsByTagName('body'), {
|
||||||
|
shadow: true, round: true, minSize: 2, maxSize: 5
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
Loading…
Add table
Add a link
Reference in a new issue