1$(document).ready(function(){ 2 3var ua = navigator.userAgent; 4var isIE = ua.match(/msie/i), 5 isIE6 = ua.match(/msie [6.]/i), 6 isIE7 = ua.match(/msie [7.]/i), 7 isIE8 = ua.match(/msie [8.]/i), 8 isIE9 = ua.match(/msie [9.]/i), 9 isIE10 = ua.match(/msie [10.]/i); 10if (isIE) { 11 $("body").addClass('ie'); 12 if (isIE6) { 13 $("body").addClass('ie6'); 14 } else if (isIE7) { 15 $("body").addClass('ie7'); 16 } else if (isIE8) { 17 $("body").addClass('ie8'); 18 } else if (isIE9) { 19 $("body").addClass('ie9'); 20 } else if (isIE10) { 21 $("body").addClass('ie10'); 22 } else { 23 $("body").addClass('normal'); 24 } 25}else{ 26 $("body").addClass('excepting'); 27} 28 29if((navigator.userAgent.indexOf('Android') > 0 && navigator.userAgent.indexOf('Mobile') == -1) || navigator.userAgent.indexOf('iPad') > 0){ 30 //tab 31 $("body").addClass('tab'); 32 $("head").append('<meta name="viewport" content="width=device-width,initial-scale=1.0">'); 33} else if ((navigator.userAgent.indexOf('iPhone') > 0 && navigator.userAgent.indexOf('iPad') == -1) || navigator.userAgent.indexOf('iPod') > 0 || (navigator.userAgent.indexOf('Android') > 0 && navigator.userAgent.indexOf('Mobile') > 0)){ 34 //sp 35 $("body").addClass('sp'); 36 $("head").append('<meta name="viewport" content="width=device-width,initial-scale=1.0">'); 37} 38}); 39
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.