1var isMobileBrowser = function(){ 2 var sUserAgent = navigator.userAgent.toLowerCase(); 3 var bIsIpad = sUserAgent.match(/ipad/i) == "ipad"; 4 var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os"; 5 var bIsMidp = sUserAgent.match(/midp/i) == "midp"; 6 var bIsUc7 = sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4"; 7 var bIsUc = sUserAgent.match(/ucweb/i) == "ucweb"; 8 var bIsAndroid = sUserAgent.match(/android/i) == "android"; 9 var bIsCE = sUserAgent.match(/windows ce/i) == "windows ce"; 10 var bIsWM = sUserAgent.match(/windows mobile/i) == "windows mobile"; 11 if (!(bIsIpad || bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM) ){ 12 return false; 13 } else { 14 return true; 15 } 16 }; 17 var isMobile = isMobileBrowser(); 18 if(isMobile){ 19 var IMG_PATH = "http://www.enaea.edu.cn/imagesf"; 20 var div = document.createElement("div"); 21 div.className +=" bottom_xf"; 22 var img = document.createElement("img"); 23 img.className = "app_img"; 24 img.src = IMG_PATH+"/AppLogo.png"; 25 var a = document.createElement("a"); 26 a.className +="button"; 27 a.href = 'http://www.enaea.edu.cn/mobile/app/'; 28 a.innerHTML = "ä¸è½½APP"; 29 a.id = "downApp"; 30 31 var imgClose = document.createElement("img"); 32 imgClose.className +=" img_close"; 33 imgClose.src = IMG_PATH+"/close1.png"; 34 imgClose.onclick = function(){ 35 var parent = imgClose.parentNode.parentNode; 36 parent.removeChild(imgClose.parentNode); 37 }; 38 div.appendChild(imgClose); 39 div.appendChild(img); 40 var span = document.createElement("span"); 41 span.innerHTML="å¦ä¹ å ¬ç¤¾"; 42 span.className += " app_title"; 43 var span2 = document.createElement("span"); 44 span2.innerHTML="å¦ä¹ 交æµåå享ï¼å ±è·å ±æé¿"; 45 span2.className += " app_content"; 46 47 div.appendChild(span); 48 div.appendChild(span2); 49 div.appendChild(a); 50 document.getElementsByTagName("body")[0].appendChild(div); 51 }
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.