The code is under src/core/ext.js in EXT
The code of the latest EXT3.0Beat1 is as follows:
Copy code code as follows:
ua = navigator.useragent.tolowercase (),
check = function (r) {
Return R.Test (UA);
},
Isstrict = document.compatmode == "css1compat",
isopera = check (/opera/),
iSchrome = check (/chrome/),
Iswebkit = Check (/Webkit/),
Issafari =! Ischrome && Check (/Safari/),
Issafari3 = ISSAFARI && Check (/Version // 3/),
Issafari4 = Issafari && Check (/Version // 4/),
Isie =! Isopra && Check (/msie/),
Isie7 = ISIE && Check (/msie 7/),
Isie8 = ISIE && Check (/msie 8/),
Isgecko =! Iswebkit && Check (/Gecko/),
Isgecko3 = Isgecko && Check (/rv:1/.9/),
IsBorderbox = ISIE &&! Isstrict,
Iswindows = Check (/Windows | Win32/),
ismac = check (/macintosh | mac os x/),
Isch = Check (/Adobeair/),
Islinux = check (/linux/),
Issecure = /^https/i.test (Window.location.protocol);
And 2.2.1 (in Source/Core/Ext.js)
Copy code code as follows:
var ua = navigator.useragent.tolowerCase ();
var isstrict = document.compatmode == "css1compat",
Isopra = Ua.indexof ("Opera")> -1,
iSchrome = ua.indexof ("chrome")> -1,
Issafari =! Ischrome && (/Webkit|khtml/).Test (UA),
Issafari3 = ISSAFARI && ua.indexof ('webkit/5')! = -1,
Isie =! Isopra && ua.indexof ("msie")> -1,
Isie7 =! Isopra && ua.indexof ("msie 7")> -1,
Isie8 =! Isopra && ua.indexof ("msie 8")> -1,
Isgecko =! ISSAFARI &&! Ischrome &&INDEXOF ("GECKO")> -1,
Isgecko3 = Isgecko && ua.indexof ("Rv: 1.9")> -1,
IsBorderbox = ISIE &&! Isstrict,
Iswindows = (Ua.indexof ("Windows")! = -1 || Ua.indexof ("Win32")! = -1),
ismac = (Ua.indexof ("Macintosh")! = -1 || Ua.indexof ("Mac OS X")! = -1),
Isch = (Ua.indexof ("Adobeair")! = -1),
Islinux = (ua.indexof ("linux")! = -1),
Issecure = window.location.href.tolowercase (). Indexof ("https") === 0; 0; 0;