1function env_user_os() 2{ 3 var ua = window.navigator.userAgent.toLowerCase(); 4 var os = 0; 5 6 if( ua.indexOf( 'windows nt' ) !== -1 ) 7 { 8 //Windows 9 os = 1; 10 } 11 else 12 if( ua.indexOf( 'mac os x') !== -1 ) 13 { 14 //macOS 15 os = 2; 16 } 17 else 18 if( ua.indexOf( 'iphone' ) !== -1 || ua.indexOf( 'ipad' ) !== -1 ) 19 { 20 //iOS 21 os = 3; 22 } 23 else 24 if( ua.indexOf( 'android' ) !== -1 ) 25 { 26 //Android 27 os = 4; 28 } 29 else 30 { 31 //Linux-Other 32 os = 0; 33 } 34 35 return os; 36} 37 38function env_windows_os_bit( bit_default ) 39{ 40 var bit = bit_default; 41 var ua = navigator.userAgent; 42 43 if( ua.match( /Win/ ) || navigator.platform.indexOf( 'Win' ) != -1 ) 44 { 45 if( navigator.platform == 'Win64' || ua.indexOf( 'Win64' ) != -1 || ua.indexOf( 'WOW64' ) != -1 ) 46 { 47 bit = '64'; 48 } 49 else 50 if( ua.indexOf( 'MSIE' ) != -1) 51 { 52 bit = '32'; 53 } 54 else 55 { 56 bit = '32'; 57 } 58 } 59 60 return bit; 61}
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.