1(function(window, undefined) { 2 var util = window.util = window.util || {}; 3 util.brwHelper = { 4 isIE : function ( version ) { 5 var userAgent = navigator.userAgent.toLowerCase(), 6 ie_version = -1, 7 result = false; 8 9 if ( !version ){ 10 result = ( navigator.appName == 'Microsoft Internet Explorer' )?true:false; 11 } else { 12 if (navigator.appName == 'Microsoft Internet Explorer') { 13 var re = new RegExp("msie ([0-9]{1,}[\.0-9]{0,})"); 14 if (re.exec(userAgent) != null) 15 ie_version = parseFloat(RegExp.$1); 16 var version_ie = (ie_version>-1)?ie_version:parseInt((userAgent.match( /.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [0,'0'])[1]); 17 if ( Object.prototype.toString.apply( version ) === '[object Array]' ) { 18 result = false; 19 for (i = 0; i < version.length; i++) { 20 if ( version_ie == version[i] ) result = true; 21 } 22 } else { 23 result = ( version_ie == version )?true:false; 24 } 25 } else { 26 result = false; 27 } 28 29 } 30 return result; 31 } 32 } 33})(window);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.