1var _MAIN_SITE_URL = window.location.protocol+"//www.wan.com"; 2var _LOC_URL = window.location.protocol+"//"+window.location.host; 3/*var SITE_COM = SITE_COM || {}; 4var SITE_ACTION = { 5 registerUrl : _MAIN_SITE_URL + '/accounts/register/', 6 forgetUrl : _MAIN_SITE_URL + '/accounts/forget_password.html', 7 checkLogin2: _MAIN_SITE_URL + "/index.php/accounts/isLogin.html", 8 login2: _MAIN_SITE_URL + "/index.php/accounts/checklogin.html", 9 webGameUrl: _MAIN_SITE_URL + "/game/play/sid/", 10 webGameUrl2: _MAIN_SITE_URL + "/game/play?sid=", 11 membersUrl : _MAIN_SITE_URL + '/members/', 12}; 13 14function c_logout( url ) { 15 $.post(url, {}, function (data) { 16 data = typeof data == "string" ? eval("(" + data + ")") : data; 17 if (data.state == 1) { 18// $("body").append(data.script); 19 c_toscript( data ); 20 $("body").append("<script>setTimeout(function(){window.location.reload();},500)</script>"); 21 } else { 22 alert(data.msg); 23 } 24 }); 25} 26 27function c_checkLogin( url, obj ) { 28 $.ajax({ 29 url: url+"?", 30 dataType: 'jsonp', 31 jsonp: 'jsonpCallback', 32 xhrFields: { withCredentials: true }, 33 crossDomain:true, 34 success: function(data){ 35 data = typeof data == "string" ? eval("("+data+")") : data; 36 if(data.state == "1"){ 37 obj.loginBox.logged(data); 38 }else { 39 obj.loginBox.loginOut(data); 40 } 41 } 42 }); 43} 44 45 46function c_login( username, password, obj ){ 47 password = encodeURIComponent(password); 48 $.getJSON(SITE_ACTION.login2 + "?cn=" + username + "&pwd=" + password + "&jsonpCallback=?", function (data) { 49 if( data.state == "-7" ){ 50 alert(data.msg); 51 window.location.href = SITE_ACTION.forgetUrl; 52 return false; 53 } else if( data.state != 1 ) { 54 alert(data.msg); 55 } else { 56 obj.loginBox.login( data ) 57 //$("body").append(data.script); 58 c_toscript( data ); 59 $("body").append("<script>setTimeout(function(){window.location.reload();},500)</script>"); 60 } 61 }); 62} 63 64function c_toscript( data ){ 65 if ( window.location.protocol == 'https:' ) { 66 console.log( "https" ); 67 var scriptSrcArr = c_scriptStringSrc(data.script); 68 for(var i = 0; i < scriptSrcArr.length; i++){ 69 var scriptObj = document.createElement("script"); 70 scriptObj.type = "text/javascript"; 71 scriptObj.reload = "1"; 72 scriptObj.src = scriptSrcArr[i].replace("http:","https:"); 73 document.body.appendChild(scriptObj); 74 } 75 } else { 76 console.log( "http" ); 77 $("body").append(data.script); 78 } 79} 80 81function c_scriptStringSrc(str){ 82 var str1 = str.split("</scr"+"ipt>"); 83 var srcArr = []; 84 for(var i= 0; i<str1.length; i++){ 85 if(str1[i].length>1){ 86 var str2 = str1[i].split("src=")[1].split("reload")[0].replace(/ /g,""); 87 str2 = str2.substr(1,str2.length-2); 88 srcArr.push(str2); 89 } 90 } 91 return srcArr; 92} 93 94SITE_COM.Cookie = { 95 96 setCookie: function (name, value, days) { 97 var Days = days || 30; //this cookie will be saved 30 days default 98 var exp = new Date(); //example:new Date("December 31, 9998"); 99 exp.setTime(exp.getTime() + Days * 24 * 60 * 60 * 1000); 100 document.cookie = name + "=" + escape(value) + ";expires=" + exp.toGMTString(); 101 }, 102 103 getCookie: function (name) { 104 var arr = document.cookie.match(new RegExp("(^| )" + name + "=([^;]*)(;|$)")); 105 if (arr != null) return unescape(arr[2]); 106 return null; 107 }, 108 109 delCookie: function (name) { 110 var exp = new Date(); 111 exp.setTime(exp.getTime() - 1); 112 var cval = this.getCookie(name); 113 if (cval != null) document.cookie = name + "=" + cval + ";expires=" + exp.toGMTString(); 114 } 115} 116 117SITE_COM.Storage = { 118 119 setStorage: function (name, value) { 120 localStorage.setItem(name, value); 121 }, 122 123 getStorage: function (name) { 124 return localStorage.getItem(name); 125 }, 126 127 delStorage: function (name) { 128 localStorage.getItem(name); 129 } 130}; 131*/
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.