This commit is contained in:
parent
93ab1779a8
commit
5660465f20
|
@ -8,6 +8,11 @@ var mobileType = '',
|
||||||
mobileType += checkW ? 'Windows Phones.' : '';
|
mobileType += checkW ? 'Windows Phones.' : '';
|
||||||
return checkW;
|
return checkW;
|
||||||
},
|
},
|
||||||
|
// Chrome: function() {
|
||||||
|
// var checkC = /Chrome/i.test(navigator.userAgent)
|
||||||
|
// mobileType += checkC ? 'Chrome browser.' : '';
|
||||||
|
// return checkC;
|
||||||
|
// },
|
||||||
Android: function() {
|
Android: function() {
|
||||||
var checkA = /Android/i.test(navigator.userAgent)
|
var checkA = /Android/i.test(navigator.userAgent)
|
||||||
mobileType += checkA ? 'Android Phones.' : '';
|
mobileType += checkA ? 'Android Phones.' : '';
|
||||||
|
@ -19,12 +24,12 @@ var mobileType = '',
|
||||||
return checkB;
|
return checkB;
|
||||||
},
|
},
|
||||||
iOS: function() {
|
iOS: function() {
|
||||||
checkI = /iPhone|iPad|iPod/i.test(navigator.userAgent);
|
var checkI = /iPhone|iPad|iPod/i.test(navigator.userAgent);
|
||||||
mobileType += checkI ? 'Apple iPhone, iPad or iPod.' : '';
|
mobileType += checkI ? 'Apple iPhone, iPad or iPod.' : '';
|
||||||
return checkI;
|
return checkI;
|
||||||
},
|
},
|
||||||
any: function() {
|
any: function() {
|
||||||
return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Windows());
|
return (/*isMobile.Chrome() ||*/ isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Windows());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue