mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-09-04 12:14:11 +08: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 () {
|
||||
if (window.snowFall && !window.rl.settingsGet('Auth'))
|
||||
{
|
||||
window.snowFall.snow(document.getElementsByTagName('body'), {
|
||||
shadow: true, round: true, minSize: 2, maxSize: 5
|
||||
});
|
||||
var
|
||||
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
Reference in a new issue