1/* 2 * Date: 2014/07/08 3 * use jquery-1.3.2.min.js 4 */ 5 6function fgetCookie(name){ 7 if (document.cookie) { 8 var cookies = document.cookie.split("; "); 9 for (var i = 0; i < cookies.length; i++) { 10 var str = cookies[i].split("="); 11 if (str[0] == name) { 12 var cookie_value = unescape(str[1]); 13 return cookie_value; 14 break; 15 } 16 } 17 } 18} 19 20function fchngDisp(){ 21 var disp = fgetCookie('os_change_display_pcsp'); 22 if(disp == '1'){ 23 var d = new Date(); 24 document.cookie = 'os_change_display_pcsp=;path=/;expires='+d.toGMTString(); 25 } else { 26 document.cookie = 'os_change_display_pcsp=1;path=/;'; 27 } 28 document.location.href = location; 29} 30 31function fchkUASP(){ 32 var ua = navigator.userAgent;// alert(ua); 33 if (ua.match(/(iPhone|iPod|iPad|Android)/)) { 34 return true; //alert("SmartPhone and Tablet"); 35 } else { 36 return false;//alert("PC"); 37 } 38} 39 40$(document).ready(function(){ 41 if( fchkUASP() ){ 42 $("#changeversion").show(); 43 } else { 44 $("#changeversion").hide(); 45 } 46});
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.