1browserRedirect(); 2 3function browserRedirect() { 4 var sUserAgent = navigator.userAgent.toLowerCase(); 5 var bIsIpad = sUserAgent.match(/ipad/i) == "ipad"; 6 var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os"; 7 var bIsMidp = sUserAgent.match(/midp/i) == "midp"; 8 var bIsUc7 = sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4"; 9 var bIsUc = sUserAgent.match(/ucweb/i) == "ucweb"; 10 var bIsAndroid = sUserAgent.match(/android/i) == "android"; 11 var bIsCE = sUserAgent.match(/windows ce/i) == "windows ce"; 12 var bIsWM = sUserAgent.match(/windows mobile/i) == "windows mobile"; 13 if ((navigator.platform.indexOf("Win") != 0)&&(bIsIpad || bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM)) { 14 console.log("mobile") 15 16 } else { 17 console.log("pc") 18 window.location.href="/403.html" 19 } 20}
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.