How to use login_https method in wpt

Best JavaScript code snippet using wpt

loginModule.js

Source:loginModule.js Github

copy

Full Screen

1define(function(){2 //接口文件3 //loginInterface4 function core_md5(e, t) {5 e[t >> 5] |= 128 << t % 32,6 e[(t + 64 >>> 9 << 4) + 14] = t;7 var n = 1732584193,8 r = -271733879,9 i = -1732584194,10 s = 271733878;11 for (var o = 0; o < e.length; o += 16) {12 var u = n,13 a = r,14 f = i,15 l = s;16 n = md5_ff(n, r, i, s, e[o + 0], 7, -680876936),17 s = md5_ff(s, n, r, i, e[o + 1], 12, -389564586),18 i = md5_ff(i, s, n, r, e[o + 2], 17, 606105819),19 r = md5_ff(r, i, s, n, e[o + 3], 22, -1044525330),20 n = md5_ff(n, r, i, s, e[o + 4], 7, -176418897),21 s = md5_ff(s, n, r, i, e[o + 5], 12, 1200080426),22 i = md5_ff(i, s, n, r, e[o + 6], 17, -1473231341),23 r = md5_ff(r, i, s, n, e[o + 7], 22, -45705983),24 n = md5_ff(n, r, i, s, e[o + 8], 7, 1770035416),25 s = md5_ff(s, n, r, i, e[o + 9], 12, -1958414417),26 i = md5_ff(i, s, n, r, e[o + 10], 17, -42063),27 r = md5_ff(r, i, s, n, e[o + 11], 22, -1990404162),28 n = md5_ff(n, r, i, s, e[o + 12], 7, 1804603682),29 s = md5_ff(s, n, r, i, e[o + 13], 12, -40341101),30 i = md5_ff(i, s, n, r, e[o + 14], 17, -1502002290),31 r = md5_ff(r, i, s, n, e[o + 15], 22, 1236535329),32 n = md5_gg(n, r, i, s, e[o + 1], 5, -165796510),33 s = md5_gg(s, n, r, i, e[o + 6], 9, -1069501632),34 i = md5_gg(i, s, n, r, e[o + 11], 14, 643717713),35 r = md5_gg(r, i, s, n, e[o + 0], 20, -373897302),36 n = md5_gg(n, r, i, s, e[o + 5], 5, -701558691),37 s = md5_gg(s, n, r, i, e[o + 10], 9, 38016083),38 i = md5_gg(i, s, n, r, e[o + 15], 14, -660478335),39 r = md5_gg(r, i, s, n, e[o + 4], 20, -405537848),40 n = md5_gg(n, r, i, s, e[o + 9], 5, 568446438),41 s = md5_gg(s, n, r, i, e[o + 14], 9, -1019803690),42 i = md5_gg(i, s, n, r, e[o + 3], 14, -187363961),43 r = md5_gg(r, i, s, n, e[o + 8], 20, 1163531501),44 n = md5_gg(n, r, i, s, e[o + 13], 5, -1444681467),45 s = md5_gg(s, n, r, i, e[o + 2], 9, -51403784),46 i = md5_gg(i, s, n, r, e[o + 7], 14, 1735328473),47 r = md5_gg(r, i, s, n, e[o + 12], 20, -1926607734),48 n = md5_hh(n, r, i, s, e[o + 5], 4, -378558),49 s = md5_hh(s, n, r, i, e[o + 8], 11, -2022574463),50 i = md5_hh(i, s, n, r, e[o + 11], 16, 1839030562),51 r = md5_hh(r, i, s, n, e[o + 14], 23, -35309556),52 n = md5_hh(n, r, i, s, e[o + 1], 4, -1530992060),53 s = md5_hh(s, n, r, i, e[o + 4], 11, 1272893353),54 i = md5_hh(i, s, n, r, e[o + 7], 16, -155497632),55 r = md5_hh(r, i, s, n, e[o + 10], 23, -1094730640),56 n = md5_hh(n, r, i, s, e[o + 13], 4, 681279174),57 s = md5_hh(s, n, r, i, e[o + 0], 11, -358537222),58 i = md5_hh(i, s, n, r, e[o + 3], 16, -722521979),59 r = md5_hh(r, i, s, n, e[o + 6], 23, 76029189),60 n = md5_hh(n, r, i, s, e[o + 9], 4, -640364487),61 s = md5_hh(s, n, r, i, e[o + 12], 11, -421815835),62 i = md5_hh(i, s, n, r, e[o + 15], 16, 530742520),63 r = md5_hh(r, i, s, n, e[o + 2], 23, -995338651),64 n = md5_ii(n, r, i, s, e[o + 0], 6, -198630844),65 s = md5_ii(s, n, r, i, e[o + 7], 10, 1126891415),66 i = md5_ii(i, s, n, r, e[o + 14], 15, -1416354905),67 r = md5_ii(r, i, s, n, e[o + 5], 21, -57434055),68 n = md5_ii(n, r, i, s, e[o + 12], 6, 1700485571),69 s = md5_ii(s, n, r, i, e[o + 3], 10, -1894986606),70 i = md5_ii(i, s, n, r, e[o + 10], 15, -1051523),71 r = md5_ii(r, i, s, n, e[o + 1], 21, -2054922799),72 n = md5_ii(n, r, i, s, e[o + 8], 6, 1873313359),73 s = md5_ii(s, n, r, i, e[o + 15], 10, -30611744),74 i = md5_ii(i, s, n, r, e[o + 6], 15, -1560198380),75 r = md5_ii(r, i, s, n, e[o + 13], 21, 1309151649),76 n = md5_ii(n, r, i, s, e[o + 4], 6, -145523070),77 s = md5_ii(s, n, r, i, e[o + 11], 10, -1120210379),78 i = md5_ii(i, s, n, r, e[o + 2], 15, 718787259),79 r = md5_ii(r, i, s, n, e[o + 9], 21, -343485551),80 n = safe_add(n, u),81 r = safe_add(r, a),82 i = safe_add(i, f),83 s = safe_add(s, l)84 }85 return Array(n, r, i, s)86 }87 function md5_cmn(e, t, n, r, i, s) {88 return safe_add(bit_rol(safe_add(safe_add(t, e), safe_add(r, s)), i), n)89 }90 function md5_ff(e, t, n, r, i, s, o) {91 return md5_cmn(t & n | ~t & r, e, t, i, s, o)92 }93 function md5_gg(e, t, n, r, i, s, o) {94 return md5_cmn(t & r | n & ~r, e, t, i, s, o)95 }96 function md5_hh(e, t, n, r, i, s, o) {97 return md5_cmn(t ^ n ^ r, e, t, i, s, o)98 }99 function md5_ii(e, t, n, r, i, s, o) {100 return md5_cmn(n ^ (t | ~r), e, t, i, s, o)101 }102 function safe_add(e, t) {103 var n = (e & 65535) + (t & 65535),104 r = (e >> 16) + (t >> 16) + (n >> 16);105 return r << 16 | n & 65535106 }107 function bit_rol(e, t) {108 return e << t | e >>> 32 - t109 }110 function str2binl(e) {111 var t = Array(),112 n = (1 << chrsz) - 1;113 for (var r = 0; r < e.length * chrsz; r += chrsz) t[r >> 5] |= (e.charCodeAt(r / chrsz) & n) << r % 32;114 return t115 }116 function binl2hex(e) {117 var t = hexcase ? "0123456789ABCDEF": "0123456789abcdef",118 n = "";119 for (var r = 0; r < e.length * 4; r++) n += t.charAt(e[r >> 2] >> r % 4 * 8 + 4 & 15) + t.charAt(e[r >> 2] >> r % 4 * 8 & 15);120 return n121 }122 var Zepto = function() {123 function e(e) {124 return null == e ? String(e) : V[$.call(e)] || "object"125 }126 function t(t) {127 return "function" == e(t)128 }129 function n(e) {130 return null != e && e == e.window131 }132 function r(e) {133 return null != e && e.nodeType == e.DOCUMENT_NODE134 }135 function i(t) {136 return "object" == e(t)137 }138 function s(e) {139 return i(e) && !n(e) && Object.getPrototypeOf(e) == Object.prototype140 }141 function o(e) {142 return "number" == typeof e.length143 }144 function u(e) {145 return A.call(e,146 function(e) {147 return null != e148 })149 }150 function a(e) {151 return e.length > 0 ? x.fn.concat.apply([], e) : e152 }153 function f(e) {154 return e.replace(/::/g, "/").replace(/([A-Z]+)([A-Z][a-z])/g, "$1_$2").replace(/([a-z\d])([A-Z])/g, "$1_$2").replace(/_/g, "-").toLowerCase()155 }156 function l(e) {157 return e in _ ? _[e] : _[e] = new RegExp("(^|\\s)" + e + "(\\s|$)")158 }159 function c(e, t) {160 return "number" != typeof t || D[f(e)] ? t: t + "px"161 }162 function h(e) {163 var t, n;164 return M[e] || (t = O.createElement(e), O.body.appendChild(t), n = getComputedStyle(t, "").getPropertyValue("display"), t.parentNode.removeChild(t), "none" == n && (n = "block"), M[e] = n),165 M[e]166 }167 function p(e) {168 return "children" in e ? L.call(e.children) : x.map(e.childNodes,169 function(e) {170 return 1 == e.nodeType ? e: void 0171 })172 }173 function d(e, t, n) {174 for (S in t) n && (s(t[S]) || G(t[S])) ? (s(t[S]) && !s(e[S]) && (e[S] = {}), G(t[S]) && !G(e[S]) && (e[S] = []), d(e[S], t[S], n)) : t[S] !== E && (e[S] = t[S])175 }176 function v(e, t) {177 return null == t ? x(e) : x(e).filter(t)178 }179 function m(e, n, r, i) {180 return t(n) ? n.call(e, r, i) : n181 }182 function g(e, t, n) {183 null == n ? e.removeAttribute(t) : e.setAttribute(t, n)184 }185 function y(e, t) {186 var n = e.className,187 r = n && n.baseVal !== E;188 return t === E ? r ? n.baseVal: n: void(r ? n.baseVal = t: e.className = t)189 }190 function b(e) {191 var t;192 try {193 return e ? "true" == e || ("false" == e ? !1 : "null" == e ? null: /^0/.test(e) || isNaN(t = Number(e)) ? /^[\[\{]/.test(e) ? x.parseJSON(e) : e: t) : e194 } catch(n) {195 return e196 }197 }198 function w(e, t) {199 t(e);200 for (var n in e.childNodes) w(e.childNodes[n], t)201 }202 var E, S, x, T, N, C, k = [],203 L = k.slice,204 A = k.filter,205 O = window.document,206 M = {},207 _ = {},208 D = {209 "column-count": 1,210 columns: 1,211 "font-weight": 1,212 "line-height": 1,213 opacity: 1,214 "z-index": 1,215 zoom: 1216 },217 P = /^\s*<(\w+|!)[^>]*>/,218 H = /^<(\w+)\s*\/?>(?:<\/\1>|)$/,219 B = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,220 j = /^(?:body|html)$/i,221 F = /([A-Z])/g,222 I = ["val", "css", "html", "text", "data", "width", "height", "offset"],223 q = ["after", "prepend", "before", "append"],224 R = O.createElement("table"),225 U = O.createElement("tr"),226 z = {227 tr: O.createElement("tbody"),228 tbody: R,229 thead: R,230 tfoot: R,231 td: U,232 th: U,233 "*": O.createElement("div")234 },235 W = /complete|loaded|interactive/,236 X = /^[\w-]*$/,237 V = {},238 $ = V.toString,239 J = {},240 K = O.createElement("div"),241 Q = {242 tabindex: "tabIndex",243 readonly: "readOnly",244 "for": "htmlFor",245 "class": "className",246 maxlength: "maxLength",247 cellspacing: "cellSpacing",248 cellpadding: "cellPadding",249 rowspan: "rowSpan",250 colspan: "colSpan",251 usemap: "useMap",252 frameborder: "frameBorder",253 contenteditable: "contentEditable"254 },255 G = Array.isArray ||256 function(e) {257 return e instanceof Array258 };259 return J.matches = function(e, t) {260 if (!t || !e || 1 !== e.nodeType) return ! 1;261 var n = e.webkitMatchesSelector || e.mozMatchesSelector || e.oMatchesSelector || e.matchesSelector;262 if (n) return n.call(e, t);263 var r, i = e.parentNode,264 s = !i;265 return s && (i = K).appendChild(e),266 r = ~J.qsa(i, t).indexOf(e),267 s && K.removeChild(e),268 r269 },270 N = function(e) {271 return e.replace(/-+(.)?/g,272 function(e, t) {273 return t ? t.toUpperCase() : ""274 })275 },276 C = function(e) {277 return A.call(e,278 function(t, n) {279 return e.indexOf(t) == n280 })281 },282 J.fragment = function(e, t, n) {283 var r, i, o;284 return H.test(e) && (r = x(O.createElement(RegExp.$1))),285 r || (e.replace && (e = e.replace(B, "<$1></$2>")), t === E && (t = P.test(e) && RegExp.$1), t in z || (t = "*"), o = z[t], o.innerHTML = "" + e, r = x.each(L.call(o.childNodes),286 function() {287 o.removeChild(this)288 })),289 s(n) && (i = x(r), x.each(n,290 function(e, t) {291 I.indexOf(e) > -1 ? i[e](t) : i.attr(e, t)292 })),293 r294 },295 J.Z = function(e, t) {296 return e = e || [],297 e.__proto__ = x.fn,298 e.selector = t || "",299 e300 },301 J.isZ = function(e) {302 return e instanceof J.Z303 },304 J.init = function(e, n) {305 var r;306 if (!e) return J.Z();307 if ("string" == typeof e) if (e = e.trim(), "<" == e[0] && P.test(e)) r = J.fragment(e, RegExp.$1, n),308 e = null;309 else {310 if (n !== E) return x(n).find(e);311 r = J.qsa(O, e)312 } else {313 if (t(e)) return x(O).ready(e);314 if (J.isZ(e)) return e;315 if (G(e)) r = u(e);316 else if (i(e)) r = [e],317 e = null;318 else if (P.test(e)) r = J.fragment(e.trim(), RegExp.$1, n),319 e = null;320 else {321 if (n !== E) return x(n).find(e);322 r = J.qsa(O, e)323 }324 }325 return J.Z(r, e)326 },327 x = function(e, t) {328 return J.init(e, t)329 },330 x.extend = function(e) {331 var t, n = L.call(arguments, 1);332 return "boolean" == typeof e && (t = e, e = n.shift()),333 n.forEach(function(n) {334 d(e, n, t)335 }),336 e337 },338 J.qsa = function(e, t) {339 var n, i = "#" == t[0],340 s = !i && "." == t[0],341 o = i || s ? t.slice(1) : t,342 u = X.test(o);343 return r(e) && u && i ? (n = e.getElementById(o)) ? [n] : [] : 1 !== e.nodeType && 9 !== e.nodeType ? [] : L.call(u && !i ? s ? e.getElementsByClassName(o) : e.getElementsByTagName(t) : e.querySelectorAll(t))344 },345 x.contains = function(e, t) {346 return e !== t && e.contains(t)347 },348 x.type = e,349 x.isFunction = t,350 x.isWindow = n,351 x.isArray = G,352 x.isPlainObject = s,353 x.isEmptyObject = function(e) {354 var t;355 for (t in e) return ! 1;356 return ! 0357 },358 x.inArray = function(e, t, n) {359 return k.indexOf.call(t, e, n)360 },361 x.camelCase = N,362 x.trim = function(e) {363 return null == e ? "": String.prototype.trim.call(e)364 },365 x.uuid = 0,366 x.support = {},367 x.expr = {},368 x.map = function(e, t) {369 var n, r, i, s = [];370 if (o(e)) for (r = 0; r < e.length; r++) n = t(e[r], r),371 null != n && s.push(n);372 else for (i in e) n = t(e[i], i),373 null != n && s.push(n);374 return a(s)375 },376 x.each = function(e, t) {377 var n, r;378 if (o(e)) {379 for (n = 0; n < e.length; n++) if (t.call(e[n], n, e[n]) === !1) return e380 } else for (r in e) if (t.call(e[r], r, e[r]) === !1) return e;381 return e382 },383 x.grep = function(e, t) {384 return A.call(e, t)385 },386 window.JSON && (x.parseJSON = JSON.parse),387 x.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),388 function(e, t) {389 V["[object " + t + "]"] = t.toLowerCase()390 }),391 x.fn = {392 forEach: k.forEach,393 reduce: k.reduce,394 push: k.push,395 sort: k.sort,396 indexOf: k.indexOf,397 concat: k.concat,398 map: function(e) {399 return x(x.map(this,400 function(t, n) {401 return e.call(t, n, t)402 }))403 },404 slice: function() {405 return x(L.apply(this, arguments))406 },407 ready: function(e) {408 return W.test(O.readyState) && O.body ? e(x) : O.addEventListener("DOMContentLoaded",409 function() {410 e(x)411 },412 !1),413 this414 },415 get: function(e) {416 return e === E ? L.call(this) : this[e >= 0 ? e: e + this.length]417 },418 toArray: function() {419 return this.get()420 },421 size: function() {422 return this.length423 },424 remove: function() {425 return this.each(function() {426 null != this.parentNode && this.parentNode.removeChild(this)427 })428 },429 each: function(e) {430 return k.every.call(this,431 function(t, n) {432 return e.call(t, n, t) !== !1433 }),434 this435 },436 filter: function(e) {437 return t(e) ? this.not(this.not(e)) : x(A.call(this,438 function(t) {439 return J.matches(t, e)440 }))441 },442 add: function(e, t) {443 return x(C(this.concat(x(e, t))))444 },445 is: function(e) {446 return this.length > 0 && J.matches(this[0], e)447 },448 not: function(e) {449 var n = [];450 if (t(e) && e.call !== E) this.each(function(t) {451 e.call(this, t) || n.push(this)452 });453 else {454 var r = "string" == typeof e ? this.filter(e) : o(e) && t(e.item) ? L.call(e) : x(e);455 this.forEach(function(e) {456 r.indexOf(e) < 0 && n.push(e)457 })458 }459 return x(n)460 },461 has: function(e) {462 return this.filter(function() {463 return i(e) ? x.contains(this, e) : x(this).find(e).size()464 })465 },466 eq: function(e) {467 return - 1 === e ? this.slice(e) : this.slice(e, +e + 1)468 },469 first: function() {470 var e = this[0];471 return e && !i(e) ? e: x(e)472 },473 last: function() {474 var e = this[this.length - 1];475 return e && !i(e) ? e: x(e)476 },477 find: function(e) {478 var t, n = this;479 return t = "object" == typeof e ? x(e).filter(function() {480 var e = this;481 return k.some.call(n,482 function(t) {483 return x.contains(t, e)484 })485 }) : 1 == this.length ? x(J.qsa(this[0], e)) : this.map(function() {486 return J.qsa(this, e)487 })488 },489 closest: function(e, t) {490 var n = this[0],491 i = !1;492 for ("object" == typeof e && (i = x(e)); n && !(i ? i.indexOf(n) >= 0 : J.matches(n, e));) n = n !== t && !r(n) && n.parentNode;493 return x(n)494 },495 parents: function(e) {496 for (var t = [], n = this; n.length > 0;) n = x.map(n,497 function(e) {498 return (e = e.parentNode) && !r(e) && t.indexOf(e) < 0 ? (t.push(e), e) : void 0499 });500 return v(t, e)501 },502 parent: function(e) {503 return v(C(this.pluck("parentNode")), e)504 },505 children: function(e) {506 return v(this.map(function() {507 return p(this)508 }), e)509 },510 contents: function() {511 return this.map(function() {512 return L.call(this.childNodes)513 })514 },515 siblings: function(e) {516 return v(this.map(function(e, t) {517 return A.call(p(t.parentNode),518 function(e) {519 return e !== t520 })521 }), e)522 },523 empty: function() {524 return this.each(function() {525 this.innerHTML = ""526 })527 },528 pluck: function(e) {529 return x.map(this,530 function(t) {531 return t[e]532 })533 },534 show: function() {535 return this.each(function() {536 "none" == this.style.display && (this.style.display = ""),537 "none" == getComputedStyle(this, "").getPropertyValue("display") && (this.style.display = h(this.nodeName))538 })539 },540 replaceWith: function(e) {541 return this.before(e).remove()542 },543 wrap: function(e) {544 var n = t(e);545 if (this[0] && !n) var r = x(e).get(0),546 i = r.parentNode || this.length > 1;547 return this.each(function(t) {548 x(this).wrapAll(n ? e.call(this, t) : i ? r.cloneNode(!0) : r)549 })550 },551 wrapAll: function(e) {552 if (this[0]) {553 x(this[0]).before(e = x(e));554 for (var t; (t = e.children()).length;) e = t.first();555 x(e).append(this)556 }557 return this558 },559 wrapInner: function(e) {560 var n = t(e);561 return this.each(function(t) {562 var r = x(this),563 i = r.contents(),564 s = n ? e.call(this, t) : e;565 i.length ? i.wrapAll(s) : r.append(s)566 })567 },568 unwrap: function() {569 return this.parent().each(function() {570 x(this).replaceWith(x(this).children())571 }),572 this573 },574 clone: function() {575 return this.map(function() {576 return this.cloneNode(!0)577 })578 },579 hide: function() {580 return this.css("display", "none")581 },582 toggle: function(e) {583 return this.each(function() {584 var t = x(this); (e === E ? "none" == t.css("display") : e) ? t.show() : t.hide()585 })586 },587 prev: function(e) {588 return x(this.pluck("previousElementSibling")).filter(e || "*")589 },590 next: function(e) {591 return x(this.pluck("nextElementSibling")).filter(e || "*")592 },593 html: function(e) {594 return 0 === arguments.length ? this.length > 0 ? this[0].innerHTML: null: this.each(function(t) {595 var n = this.innerHTML;596 x(this).empty().append(m(this, e, t, n))597 })598 },599 text: function(e) {600 return 0 === arguments.length ? this.length > 0 ? this[0].textContent: null: this.each(function() {601 this.textContent = e === E ? "": "" + e602 })603 },604 attr: function(e, t) {605 var n;606 return "string" == typeof e && t === E ? 0 == this.length || 1 !== this[0].nodeType ? E: "value" == e && "INPUT" == this[0].nodeName ? this.val() : !(n = this[0].getAttribute(e)) && e in this[0] ? this[0][e] : n: this.each(function(n) {607 if (1 === this.nodeType) if (i(e)) for (S in e) g(this, S, e[S]);608 else g(this, e, m(this, t, n, this.getAttribute(e)))609 })610 },611 removeAttr: function(e) {612 return this.each(function() {613 1 === this.nodeType && g(this, e)614 })615 },616 prop: function(e, t) {617 return e = Q[e] || e,618 t === E ? this[0] && this[0][e] : this.each(function(n) {619 this[e] = m(this, t, n, this[e])620 })621 },622 data: function(e, t) {623 var n = this.attr("data-" + e.replace(F, "-$1").toLowerCase(), t);624 return null !== n ? b(n) : E625 },626 val: function(e) {627 return 0 === arguments.length ? this[0] && (this[0].multiple ? x(this[0]).find("option").filter(function() {628 return this.selected629 }).pluck("value") : this[0].value) : this.each(function(t) {630 this.value = m(this, e, t, this.value)631 })632 },633 offset: function(e) {634 if (e) return this.each(function(t) {635 var n = x(this),636 r = m(this, e, t, n.offset()),637 i = n.offsetParent().offset(),638 s = {639 top: r.top - i.top,640 left: r.left - i.left641 };642 "static" == n.css("position") && (s.position = "relative"),643 n.css(s)644 });645 if (0 == this.length) return null;646 var t = this[0].getBoundingClientRect();647 return {648 left: t.left + window.pageXOffset,649 top: t.top + window.pageYOffset,650 width: Math.round(t.width),651 height: Math.round(t.height)652 }653 },654 css: function(t, n) {655 if (arguments.length < 2) {656 var r = this[0],657 i = getComputedStyle(r, "");658 if (!r) return;659 if ("string" == typeof t) return r.style[N(t)] || i.getPropertyValue(t);660 if (G(t)) {661 var s = {};662 return x.each(G(t) ? t: [t],663 function(e, t) {664 s[t] = r.style[N(t)] || i.getPropertyValue(t)665 }),666 s667 }668 }669 var o = "";670 if ("string" == e(t)) n || 0 === n ? o = f(t) + ":" + c(t, n) : this.each(function() {671 this.style.removeProperty(f(t))672 });673 else for (S in t) t[S] || 0 === t[S] ? o += f(S) + ":" + c(S, t[S]) + ";": this.each(function() {674 this.style.removeProperty(f(S))675 });676 return this.each(function() {677 this.style.cssText += ";" + o678 })679 },680 index: function(e) {681 return e ? this.indexOf(x(e)[0]) : this.parent().children().indexOf(this[0])682 },683 hasClass: function(e) {684 return e ? k.some.call(this,685 function(e) {686 return this.test(y(e))687 },688 l(e)) : !1689 },690 addClass: function(e) {691 return e ? this.each(function(t) {692 T = [];693 var n = y(this),694 r = m(this, e, t, n);695 r.split(/\s+/g).forEach(function(e) {696 x(this).hasClass(e) || T.push(e)697 },698 this),699 T.length && y(this, n + (n ? " ": "") + T.join(" "))700 }) : this701 },702 removeClass: function(e) {703 return this.each(function(t) {704 return e === E ? y(this, "") : (T = y(this), m(this, e, t, T).split(/\s+/g).forEach(function(e) {705 T = T.replace(l(e), " ")706 }), void y(this, T.trim()))707 })708 },709 toggleClass: function(e, t) {710 return e ? this.each(function(n) {711 var r = x(this),712 i = m(this, e, n, y(this));713 i.split(/\s+/g).forEach(function(e) { (t === E ? !r.hasClass(e) : t) ? r.addClass(e) : r.removeClass(e)714 })715 }) : this716 },717 scrollTop: function(e) {718 if (this.length) {719 var t = "scrollTop" in this[0];720 return e === E ? t ? this[0].scrollTop: this[0].pageYOffset: this.each(t ?721 function() {722 this.scrollTop = e723 }: function() {724 this.scrollTo(this.scrollX, e)725 })726 }727 },728 scrollLeft: function(e) {729 if (this.length) {730 var t = "scrollLeft" in this[0];731 return e === E ? t ? this[0].scrollLeft: this[0].pageXOffset: this.each(t ?732 function() {733 this.scrollLeft = e734 }: function() {735 this.scrollTo(e, this.scrollY)736 })737 }738 },739 position: function() {740 if (this.length) {741 var e = this[0],742 t = this.offsetParent(),743 n = this.offset(),744 r = j.test(t[0].nodeName) ? {745 top: 0,746 left: 0747 }: t.offset();748 return n.top -= parseFloat(x(e).css("margin-top")) || 0,749 n.left -= parseFloat(x(e).css("margin-left")) || 0,750 r.top += parseFloat(x(t[0]).css("border-top-width")) || 0,751 r.left += parseFloat(x(t[0]).css("border-left-width")) || 0,752 {753 top: n.top - r.top,754 left: n.left - r.left755 }756 }757 },758 offsetParent: function() {759 return this.map(function() {760 for (var e = this.offsetParent || O.body; e && !j.test(e.nodeName) && "static" == x(e).css("position");) e = e.offsetParent;761 return e762 })763 }764 },765 x.fn.detach = x.fn.remove,766 ["width", "height"].forEach(function(e) {767 var t = e.replace(/./,768 function(e) {769 return e[0].toUpperCase()770 });771 x.fn[e] = function(i) {772 var s, o = this[0];773 return i === E ? n(o) ? o["inner" + t] : r(o) ? o.documentElement["scroll" + t] : (s = this.offset()) && s[e] : this.each(function(t) {774 o = x(this),775 o.css(e, m(this, i, t, o[e]()))776 })777 }778 }),779 q.forEach(function(t, n) {780 var r = n % 2;781 x.fn[t] = function() {782 var t, i, s = x.map(arguments,783 function(n) {784 return t = e(n),785 "object" == t || "array" == t || null == n ? n: J.fragment(n)786 }),787 o = this.length > 1;788 return s.length < 1 ? this: this.each(function(e, t) {789 i = r ? t: t.parentNode,790 t = 0 == n ? t.nextSibling: 1 == n ? t.firstChild: 2 == n ? t: null,791 s.forEach(function(e) {792 if (o) e = e.cloneNode(!0);793 else if (!i) return x(e).remove();794 w(i.insertBefore(e, t),795 function(e) {796 null == e.nodeName || "SCRIPT" !== e.nodeName.toUpperCase() || e.type && "text/javascript" !== e.type || e.src || window.eval.call(window, e.innerHTML)797 })798 })799 })800 },801 x.fn[r ? t + "To": "insert" + (n ? "Before": "After")] = function(e) {802 return x(e)[t](this),803 this804 }805 }),806 J.Z.prototype = x.fn,807 J.uniq = C,808 J.deserializeValue = b,809 x.zepto = J,810 x811 } ();812 window.Zepto = Zepto,813 void 0 === window.$ && (window.$ = Zepto),814 function(e) {815 function t(e) {816 return e._zid || (e._zid = h++)817 }818 function n(e, n, s, o) {819 if (n = r(n), n.ns) var u = i(n.ns);820 return (m[t(e)] || []).filter(function(e) {821 return ! (!e || n.e && e.e != n.e || n.ns && !u.test(e.ns) || s && t(e.fn) !== t(s) || o && e.sel != o)822 })823 }824 function r(e) {825 var t = ("" + e).split(".");826 return {827 e: t[0],828 ns: t.slice(1).sort().join(" ")829 }830 }831 function i(e) {832 return new RegExp("(?:^| )" + e.replace(" ", " .* ?") + "(?: |$)")833 }834 function s(e, t) {835 return e.del && !y && e.e in b || !!t836 }837 function o(e) {838 return w[e] || y && b[e] || e839 }840 function u(n, i, u, a, l, h, p) {841 var d = t(n),842 v = m[d] || (m[d] = []);843 i.split(/\s/).forEach(function(t) {844 if ("ready" == t) return e(document).ready(u);845 var i = r(t);846 i.fn = u,847 i.sel = l,848 i.e in w && (u = function(t) {849 var n = t.relatedTarget;850 return ! n || n !== this && !e.contains(this, n) ? i.fn.apply(this, arguments) : void 0851 }),852 i.del = h;853 var d = h || u;854 i.proxy = function(e) {855 if (e = f(e), !e.isImmediatePropagationStopped()) {856 e.data = a;857 var t = d.apply(n, e._args == c ? [e] : [e].concat(e._args));858 return t === !1 && (e.preventDefault(), e.stopPropagation()),859 t860 }861 },862 i.i = v.length,863 v.push(i),864 "addEventListener" in n && n.addEventListener(o(i.e), i.proxy, s(i, p))865 })866 }867 function a(e, r, i, u, a) {868 var f = t(e); (r || "").split(/\s/).forEach(function(t) {869 n(e, t, i, u).forEach(function(t) {870 delete m[f][t.i],871 "removeEventListener" in e && e.removeEventListener(o(t.e), t.proxy, s(t, a))872 })873 })874 }875 function f(t, n) {876 return (n || !t.isDefaultPrevented) && (n || (n = t), e.each(T,877 function(e, r) {878 var i = n[e];879 t[e] = function() {880 return this[r] = E,881 i && i.apply(n, arguments)882 },883 t[r] = S884 }), (n.defaultPrevented !== c ? n.defaultPrevented: "returnValue" in n ? n.returnValue === !1 : n.getPreventDefault && n.getPreventDefault()) && (t.isDefaultPrevented = E)),885 t886 }887 function l(e) {888 var t, n = {889 originalEvent: e890 };891 for (t in e) x.test(t) || e[t] === c || (n[t] = e[t]);892 return f(n, e)893 }894 var c, h = 1,895 p = Array.prototype.slice,896 d = e.isFunction,897 v = function(e) {898 return "string" == typeof e899 },900 m = {},901 g = {},902 y = "onfocusin" in window,903 b = {904 focus: "focusin",905 blur: "focusout"906 },907 w = {908 mouseenter: "mouseover",909 mouseleave: "mouseout"910 };911 g.click = g.mousedown = g.mouseup = g.mousemove = "MouseEvents",912 e.event = {913 add: u,914 remove: a915 },916 e.proxy = function(n, r) {917 if (d(n)) {918 var i = function() {919 return n.apply(r, arguments)920 };921 return i._zid = t(n),922 i923 }924 if (v(r)) return e.proxy(n[r], n);925 throw new TypeError("expected function")926 },927 e.fn.bind = function(e, t, n) {928 return this.on(e, t, n)929 },930 e.fn.unbind = function(e, t) {931 return this.off(e, t)932 },933 e.fn.one = function(e, t, n, r) {934 return this.on(e, t, n, r, 1)935 };936 var E = function() {937 return ! 0938 },939 S = function() {940 return ! 1941 },942 x = /^([A-Z]|returnValue$|layer[XY]$)/,943 T = {944 preventDefault: "isDefaultPrevented",945 stopImmediatePropagation: "isImmediatePropagationStopped",946 stopPropagation: "isPropagationStopped"947 };948 e.fn.delegate = function(e, t, n) {949 return this.on(t, e, n)950 },951 e.fn.undelegate = function(e, t, n) {952 return this.off(t, e, n)953 },954 e.fn.live = function(t, n) {955 return e(document.body).delegate(this.selector, t, n),956 this957 },958 e.fn.die = function(t, n) {959 return e(document.body).undelegate(this.selector, t, n),960 this961 },962 e.fn.on = function(t, n, r, i, s) {963 var o, f, h = this;964 return t && !v(t) ? (e.each(t,965 function(e, t) {966 h.on(e, n, r, t, s)967 }), h) : (v(n) || d(i) || i === !1 || (i = r, r = n, n = c), (d(r) || r === !1) && (i = r, r = c), i === !1 && (i = S), h.each(function(c, h) {968 s && (o = function(e) {969 return a(h, e.type, i),970 i.apply(this, arguments)971 }),972 n && (f = function(t) {973 var r, s = e(t.target).closest(n, h).get(0);974 return s && s !== h ? (r = e.extend(l(t), {975 currentTarget: s,976 liveFired: h977 }), (o || i).apply(s, [r].concat(p.call(arguments, 1)))) : void 0978 }),979 u(h, t, i, r, n, f || o)980 }))981 },982 e.fn.off = function(t, n, r) {983 var i = this;984 return t && !v(t) ? (e.each(t,985 function(e, t) {986 i.off(e, n, t)987 }), i) : (v(n) || d(r) || r === !1 || (r = n, n = c), r === !1 && (r = S), i.each(function() {988 a(this, t, r, n)989 }))990 },991 e.fn.trigger = function(t, n) {992 return t = v(t) || e.isPlainObject(t) ? e.Event(t) : f(t),993 t._args = n,994 this.each(function() {995 "dispatchEvent" in this ? this.dispatchEvent(t) : e(this).triggerHandler(t, n)996 })997 },998 e.fn.triggerHandler = function(t, r) {999 var i, s;1000 return this.each(function(o, u) {1001 i = l(v(t) ? e.Event(t) : t),1002 i._args = r,1003 i.target = u,1004 e.each(n(u, t.type || t),1005 function(e, t) {1006 return s = t.proxy(i),1007 i.isImmediatePropagationStopped() ? !1 : void 01008 })1009 }),1010 s1011 },1012 "focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach(function(t) {1013 e.fn[t] = function(e) {1014 return e ? this.bind(t, e) : this.trigger(t)1015 }1016 }),1017 ["focus", "blur"].forEach(function(t) {1018 e.fn[t] = function(e) {1019 return e ? this.bind(t, e) : this.each(function() {1020 try {1021 this[t]()1022 } catch(e) {}1023 }),1024 this1025 }1026 }),1027 e.Event = function(e, t) {1028 v(e) || (t = e, e = t.type);1029 var n = document.createEvent(g[e] || "Events"),1030 r = !0;1031 if (t) for (var i in t)"bubbles" == i ? r = !!t[i] : n[i] = t[i];1032 return n.initEvent(e, r, !0),1033 f(n)1034 }1035 } (Zepto),1036 function(t) {1037 function l(e, n, r) {1038 var i = t.Event(n);1039 return t(e).trigger(i, r),1040 !i.isDefaultPrevented()1041 }1042 function h(e, t, r, i) {1043 return e.global ? l(t || n, r, i) : void 01044 }1045 function p(e) {1046 e.global && 0 === t.active++&&h(e, null, "ajaxStart")1047 }1048 function d(e) {1049 e.global && !--t.active && h(e, null, "ajaxStop")1050 }1051 function m(e, t) {1052 var n = t.context;1053 return t.beforeSend.call(n, e, t) === !1 || h(t, n, "ajaxBeforeSend", [e, t]) === !1 ? !1 : void h(t, n, "ajaxSend", [e, t])1054 }1055 function g(e, t, n, r) {1056 var i = n.context,1057 s = "success";1058 n.success.call(i, e, s, t),1059 r && r.resolveWith(i, [e, s, t]),1060 h(n, i, "ajaxSuccess", [t, n, e]),1061 y(s, t, n)1062 }1063 function v(e, t, n, r, i) {1064 var s = r.context;1065 r.error.call(s, n, t, e),1066 i && i.rejectWith(s, [n, t, e]),1067 h(r, s, "ajaxError", [n, r, e || t]),1068 y(t, n, r)1069 }1070 function y(e, t, n) {1071 var r = n.context;1072 n.complete.call(r, t, e),1073 h(n, r, "ajaxComplete", [t, n]),1074 d(n)1075 }1076 function x() {}1077 function b(e) {1078 return e && (e = e.split(";", 2)[0]),1079 e && (e == f ? "html": e == u ? "json": s.test(e) ? "script": a.test(e) && "xml") || "text"1080 }1081 function w(e, t) {1082 return "" == t ? e: (e + "&" + t).replace(/[&?]{1,2}/, "?")1083 }1084 function E(e) {1085 e.processData && e.data && "string" != t.type(e.data) && (e.data = t.param(e.data, e.traditional)),1086 !e.data || e.type && "GET" != e.type.toUpperCase() || (e.url = w(e.url, e.data), e.data = void 0)1087 }1088 function j(e, n, r, i) {1089 return t.isFunction(n) && (i = r, r = n, n = void 0),1090 t.isFunction(r) || (i = r, r = void 0),1091 {1092 url: e,1093 data: n,1094 success: r,1095 dataType: i1096 }1097 }1098 function S(e, n, r, i) {1099 var s, o = t.isArray(n),1100 u = t.isPlainObject(n);1101 t.each(n,1102 function(n, f) {1103 s = t.type(f),1104 i && (n = r ? i: i + "[" + (u || "object" == s || "array" == s ? n: "") + "]"),1105 !i && o ? e.add(f.name, f.value) : "array" == s || !r && "object" == s ? S(e, f, r, n) : e.add(n, f)1106 })1107 }1108 var i, r, e = 0,1109 n = window.document,1110 o = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,1111 s = /^(?:text|application)\/javascript/i,1112 a = /^(?:text|application)\/xml/i,1113 u = "application/json",1114 f = "text/html",1115 c = /^\s*$/;1116 t.active = 0,1117 t.ajaxJSONP = function(r, i) {1118 if ("type" in r) {1119 var s, o, u = r.jsonpCallback,1120 a = (t.isFunction(u) ? u() : u) || "jsonp" + ++e,1121 f = n.createElement("script"),1122 l = window[a],1123 c = function(e) {1124 t(f).triggerHandler("error", e || "abort")1125 },1126 h = {1127 abort: c1128 };1129 return i && i.promise(h),1130 t(f).on("load error",1131 function(e, n) {1132 clearTimeout(o),1133 t(f).off().remove(),1134 "error" != e.type && s ? g(s[0], h, r, i) : v(null, n || "error", h, r, i),1135 window[a] = l,1136 s && t.isFunction(l) && l(s[0]),1137 l = s = void 01138 }),1139 m(h, r) === !1 ? (c("abort"), h) : (window[a] = function() {1140 s = arguments1141 },1142 f.src = r.url.replace(/\?(.+)=\?/, "?$1=" + a), n.head.appendChild(f), r.timeout > 0 && (o = setTimeout(function() {1143 c("timeout")1144 },1145 r.timeout)), h)1146 }1147 return t.ajax(r)1148 },1149 t.ajaxSettings = {1150 type: "GET",1151 beforeSend: x,1152 success: x,1153 error: x,1154 complete: x,1155 context: null,1156 global: !0,1157 xhr: function() {1158 return new window.XMLHttpRequest1159 },1160 accepts: {1161 script: "text/javascript, application/javascript, application/x-javascript",1162 json: u,1163 xml: "application/xml, text/xml",1164 html: f,1165 text: "text/plain"1166 },1167 crossDomain: !1,1168 timeout: 0,1169 processData: !0,1170 cache: !01171 },1172 t.ajax = function(e) {1173 var n = t.extend({},1174 e || {}),1175 o = t.Deferred && t.Deferred();1176 for (i in t.ajaxSettings) void 0 === n[i] && (n[i] = t.ajaxSettings[i]);1177 p(n),1178 n.crossDomain || (n.crossDomain = /^([\w-]+:)?\/\/([^\/]+)/.test(n.url) && RegExp.$2 != window.location.host),1179 n.url || (n.url = window.location.toString()),1180 E(n),1181 n.cache === !1 && (n.url = w(n.url, "_=" + Date.now()));1182 var s = n.dataType,1183 a = /\?.+=\?/.test(n.url);1184 if ("jsonp" == s || a) return a || (n.url = w(n.url, n.jsonp ? n.jsonp + "=?": n.jsonp === !1 ? "": "callback=?")),1185 t.ajaxJSONP(n, o);1186 var j, u = n.accepts[s],1187 f = {},1188 l = function(e, t) {1189 f[e.toLowerCase()] = [e, t]1190 },1191 h = /^([\w-]+:)\/\//.test(n.url) ? RegExp.$1: window.location.protocol,1192 d = n.xhr(),1193 y = d.setRequestHeader;1194 if (o && o.promise(d), n.crossDomain || l("X-Requested-With", "XMLHttpRequest"), l("Accept", u || "*/*"), (u = n.mimeType || u) && (u.indexOf(",") > -1 && (u = u.split(",", 2)[0]), d.overrideMimeType && d.overrideMimeType(u)), (n.contentType || n.contentType !== !1 && n.data && "GET" != n.type.toUpperCase()) && l("Content-Type", n.contentType || "application/x-www-form-urlencoded"), n.headers) for (r in n.headers) l(r, n.headers[r]);1195 if (d.setRequestHeader = l, d.onreadystatechange = function() {1196 if (4 == d.readyState) {1197 d.onreadystatechange = x,1198 clearTimeout(j);1199 var e, i = !1;1200 if (d.status >= 200 && d.status < 300 || 304 == d.status || 0 == d.status && "file:" == h) {1201 s = s || b(n.mimeType || d.getResponseHeader("content-type")),1202 e = d.responseText;1203 try {1204 "script" == s ? (1, eval)(e) : "xml" == s ? e = d.responseXML: "json" == s && (e = c.test(e) ? null: t.parseJSON(e))1205 } catch(r) {1206 i = r1207 }1208 i ? v(i, "parsererror", d, n, o) : g(e, d, n, o)1209 } else v(d.statusText || null, d.status ? "error": "abort", d, n, o)1210 }1211 },1212 m(d, n) === !1) return d.abort(),1213 v(null, "abort", d, n, o),1214 d;1215 if (n.xhrFields) for (r in n.xhrFields) d[r] = n.xhrFields[r];1216 var T = "async" in n ? n.async: !0;1217 d.open(n.type, n.url, T, n.username, n.password);1218 for (r in f) y.apply(d, f[r]);1219 return n.timeout > 0 && (j = setTimeout(function() {1220 d.onreadystatechange = x,1221 d.abort(),1222 v(null, "timeout", d, n, o)1223 },1224 n.timeout)),1225 d.send(n.data ? n.data: null),1226 d1227 },1228 t.get = function() {1229 return t.ajax(j.apply(null, arguments))1230 },1231 t.post = function() {1232 var e = j.apply(null, arguments);1233 return e.type = "POST",1234 t.ajax(e)1235 },1236 t.getJSON = function() {1237 var e = j.apply(null, arguments);1238 return e.dataType = "json",1239 t.ajax(e)1240 },1241 t.fn.load = function(e, n, r) {1242 if (!this.length) return this;1243 var i, s = this,1244 u = e.split(/\s/),1245 a = j(e, n, r),1246 f = a.success;1247 return u.length > 1 && (a.url = u[0], i = u[1]),1248 a.success = function(e) {1249 s.html(i ? t("<div>").html(e.replace(o, "")).find(i) : e),1250 f && f.apply(s, arguments)1251 },1252 t.ajax(a),1253 this1254 };1255 var T = encodeURIComponent;1256 t.param = function(e, t) {1257 var n = [];1258 return n.add = function(e, t) {1259 this.push(T(e) + "=" + T(t))1260 },1261 S(n, e, t),1262 n.join("&").replace(/%20/g, "+")1263 }1264 } (Zepto),1265 function(e) {1266 e.fn.serializeArray = function() {1267 var n, r = [];1268 return e([].slice.call(this.get(0).elements)).each(function() {1269 n = e(this);1270 var i = n.attr("type");1271 "fieldset" != this.nodeName.toLowerCase() && !this.disabled && "submit" != i && "reset" != i && "button" != i && ("radio" != i && "checkbox" != i || this.checked) && r.push({1272 name: n.attr("name"),1273 value: n.val()1274 })1275 }),1276 r1277 },1278 e.fn.serialize = function() {1279 var e = [];1280 return this.serializeArray().forEach(function(n) {1281 e.push(encodeURIComponent(n.name) + "=" + encodeURIComponent(n.value))1282 }),1283 e.join("&")1284 },1285 e.fn.submit = function(n) {1286 if (n) this.bind("submit", n);1287 else if (this.length) {1288 var r = e.Event("submit");1289 this.eq(0).trigger(r),1290 r.isDefaultPrevented() || this.get(0).submit()1291 }1292 return this1293 }1294 } (Zepto),1295 function(e) {1296 "__proto__" in {} || e.extend(e.zepto, {1297 Z: function(t, n) {1298 return t = t || [],1299 e.extend(t, e.fn),1300 t.selector = n || "",1301 t.__Z = !0,1302 t1303 },1304 isZ: function(t) {1305 return "array" === e.type(t) && "__Z" in t1306 }1307 });1308 try {1309 getComputedStyle(void 0)1310 } catch(t) {1311 var n = getComputedStyle;1312 window.getComputedStyle = function(e) {1313 try {1314 return n(e)1315 } catch(t) {1316 return null1317 }1318 }1319 }1320 } (Zepto);1321 var hexcase = 0,1322 chrsz = 8,1323 QHPass = window.QHPass || {};1324 (function() {1325 QHPass.loadCss = function(e) {1326 var t = document.getElementsByTagName("head")[0] || document.documentElement,1327 n = document.createElement("link");1328 n.rel = "stylesheet",1329 n.type = "text/css",1330 n.href = e,1331 t.insertBefore(n, t.firstChild)1332 },1333 QHPass.loadJs = function(e, t, n) {1334 n = n || {};1335 var r = document.getElementsByTagName("head")[0] || document.documentElement,1336 i = document.createElement("script"),1337 s = !1;1338 i.src = e,1339 n.charset && (i.charset = n.charset),1340 i.onerror = i.onload = i.onreadystatechange = function() { ! s && (!this.readyState || this.readyState == "loaded" || this.readyState == "complete") && (s = !0, t && t(), i.onerror = i.onload = i.onreadystatechange = null, r.removeChild(i))1341 },1342 r.insertBefore(i, r.firstChild)1343 },1344 QHPass.loadJsonp = function() {1345 var e = new Date * 1;1346 return function(t, n, r) {1347 r = r || {};1348 var i = "QiUserJsonP" + e++,1349 s = r.callbackReplacer || /%callbackfun%/ig;1350 window[i] = function(e) {1351 n && n(e),1352 window[i] = null1353 },1354 s.test(t) ? t = t.replace(s, i) : t += (/\?/.test(t) ? "&": "?") + "callback=" + i,1355 QHPass.loadJs(t, null, r)1356 }1357 } (),1358 QHPass.CrossDomainRequest = function(e, t, n, r) {1359 var i = +(new Date),1360 s = "";1361 typeof n == "string" ? s = n: (s = "_CrossDomainCallback" + i, window[s] = function() {1362 var e = decodeURIComponent(arguments[0]);1363 return o.parentNode.removeChild(o),1364 n(e)1365 });1366 var o = document.createElement("div");1367 o.innerHTML = '<iframe style="display:none" id="_CrossDomainiframe' + i + '" name="' + "_CrossDomainiframe" + i + '" src=""></iframe>',1368 document.body.appendChild(o);1369 var u = document.createElement("FORM");1370 u.style.display = "none",1371 u.method = r || "post",1372 u.target = "_CrossDomainiframe" + i,1373 u.action = e;1374 var a = [];1375 a.push('<input type="hidden" name="callback" value="' + s + '" />'),1376 a.push('<input type="hidden" name="proxy" value="http://' + location.host + '/psp_jump.html" />'),1377 u.innerHTML = a.join("");1378 for (var f in t) {1379 var l = document.createElement("input");1380 l.setAttribute("type", "hidden"),1381 l.setAttribute("name", f),1382 l.setAttribute("value", t[f]),1383 u.appendChild(l)1384 }1385 document.body.appendChild(u),1386 u.submit(),1387 u.parentNode.removeChild(u)1388 },1389 QHPass.Cookie = QHPass.Cookie || {},1390 QHPass.Cookie.get = function(e) {1391 var t, n = new RegExp("(^| )" + e + "=([^;]*)(;|$)");1392 try {1393 return (t = document.cookie.match(n)) ? decodeURIComponent(t[2]) : null1394 } catch(r) {1395 return null1396 }1397 },1398 QHPass.Cookie.set = function(e, t, n, r) {1399 var i = new Date;1400 i.setTime(i.getTime() + n);1401 var s = e + "=" + encodeURIComponent(t) + ";expires=" + i.toGMTString() + ";path=/;";1402 r && r != "localhost" && (s += "domain=" + r),1403 document.cookie = s1404 },1405 QHPass.Cookie.del = function(e) {1406 QHPass.Cookie.set(e, "")1407 },1408 QHPass.getUserInfo = function(e, t) {1409 var n = location.host.match(/1360\.com|360\.cn|qihoo\.com|woxihuan\.com|yunpan\.cn|360kan\.com/ig),1410 r = n && n[0] && "http://login." + n[0] + "/?o=sso&m=info&func=%callbackfun%&show_name_flag=1";1411 r && QHPass.loadJsonp(r,1412 function(n) {1413 n.qid ? e && e() : t && t()1414 })1415 },1416 QHPass.trim = function(e) {1417 return e && e.replace(/^\s+|\s+$/g, "")1418 },1419 QHPass.queryUrl = function(e, t) {1420 e = e.replace(/^[^?=]*\?/ig, "").split("#")[0];1421 var n = {};1422 return e.replace(/(^|&)([^&=]+)=([^&]*)/g,1423 function(e, t, r, i) {1424 try {1425 r = decodeURIComponent(r),1426 i = decodeURIComponent(i)1427 } catch(s) {}1428 r in n ? n[r] instanceof Array ? n[r].push(i) : n[r] = [n[r], i] : n[r] = /\[\]$/.test(r) ? [i] : i1429 }),1430 t ? n[t] : n1431 },1432 QHPass.ajax = function(e) {1433 var t = e.flagfun,1434 n = {1435 type: "POST",1436 timeout: 2e4,1437 error: function(e, n, r) {1438 n == "timeout" ? $.dialog({1439 time: 2,1440 msgType: "wrong",1441 content: "\u9875\u9762\u8bf7\u6c42\u8d85\u65f6\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5\uff01",1442 callback: function() {1443 t ? t && t() : window.location.reload(!0)1444 }1445 }).show() : $.dialog({1446 time: 2,1447 msgType: "wrong",1448 content: "\u7f51\u7edc\u5f02\u5e38\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5\uff01",1449 callback: function() {1450 t ? t && t() : window.location.reload(!0)1451 }1452 }).show()1453 }1454 },1455 r = $.extend(n, e);1456 $.ajax(r)1457 },1458 $(document.body).delegate(".psp-monitor", "click",1459 function(e) {1460 var t = e.target,1461 n = {1462 cId: monitor.util.getContainerId(t),1463 c: t.getAttribute("data-pspclick")1464 };1465 monitor.log(n, "click")1466 }),1467 QHPass.pspLog = function(e) {1468 monitor.log(e, "click")1469 },1470 QHPass.wpo = function() {1471 var e;1472 $(function() {1473 e = new Date1474 }),1475 monitor.setConf("wpoUrl", "http://s.360.cn/w360/p.htm"),1476 $(window).on("load",1477 function() {1478 var t = {1479 t0: e - G_start_time,1480 t1: new Date - G_start_time1481 };1482 monitor.log(t, "wpo")1483 })1484 },1485 $("#currentYear").html((new Date).getFullYear())1486 })(),1487 function(e) {1488 "use strict";1489 var t = e.ERROR = {1490 REALNAME_EMPTY: {1491 errno: 204,1492 errmsg: "\u8bf7\u8f93\u5165\u771f\u5b9e\u59d3\u540d"1493 },1494 REALNAME_INVALID: {1495 errno: 227,1496 errmsg: "\u771f\u5b9e\u59d3\u540d\u8f93\u5165\u6709\u8bef"1497 },1498 ACCOUNT_EMPTY: {1499 errno: 1030,1500 errmsg: "\u8bf7\u8f93\u5165\u60a8\u7684\u5e10\u53f7"1501 },1502 ACCOUNT_INVALID: {1503 errno: 1035,1504 errmsg: "\u8bf7\u786e\u8ba4\u5e10\u53f7\u8f93\u5165\u662f\u5426\u6709\u8bef"1505 },1506 USERNAME_DUPLICATE: {1507 errno: 213,1508 errmsg: "\u7528\u6237\u540d\u5df2\u7ecf\u88ab\u4f7f\u7528"1509 },1510 USERNAME_EMPTY: {1511 errno: 215,1512 errmsg: "\u8bf7\u8f93\u5165\u7528\u6237\u540d"1513 },1514 USERNAME_INVALID: {1515 errno: 225,1516 errmsg: "\u7528\u6237\u540d\u4e0d\u80fd\u4f7f\u7528\u7279\u6b8a\u5b57\u7b26"1517 },1518 NICKNAME_EMPTY: {1519 errno: 205,1520 errmsg: "\u8bf7\u8f93\u5165\u6635\u79f0"1521 },1522 NICKNAME_DUPLICATE: {1523 errno: 260,1524 errmsg: "\u6635\u79f0\u5df2\u7ecf\u88ab\u4f7f\u7528"1525 },1526 NICKNAME_INVALID: {1527 errno: 226,1528 errmsg: "\u6635\u79f0\u4e0d\u80fd\u4f7f\u7528\u7279\u6b8a\u5b57\u7b26"1529 },1530 NICKNAME_TOO_SHORT: {1531 errno: 15e3,1532 errmsg: "\u6635\u79f0\u5e94\u4e3a2-14\u4e2a\u5b57\u7b26"1533 },1534 EMAIL_EMPTY: {1535 errno: 203,1536 errmsg: "\u8bf7\u8f93\u5165\u90ae\u7bb1"1537 },1538 EMAIL_INVALID: {1539 errno: 1532,1540 errmsg: "\u90ae\u7bb1\u683c\u5f0f\u9519\u8bef"1541 },1542 MOBILE_EMPTY: {1543 errno: 1107,1544 errmsg: "\u8bf7\u8f93\u5165\u624b\u673a\u53f7"1545 },1546 MOBILE_INVALID: {1547 errno: 1100,1548 errmsg: "\u624b\u673a\u53f7\u683c\u5f0f\u9519\u8bef"1549 },1550 CAPTCHA_INVALID: {1551 errno: 75e3,1552 errmsg: "\u8bf7\u8f93\u5165\u9a8c\u8bc1\u7801"1553 },1554 CAPTCHA_APPID_INVALID: {1555 errno: 1300,1556 errmsg: "\u9a8c\u8bc1\u7801\u683c\u5f0f\u6709\u8bef"1557 },1558 SMS_TOKEN_EMPTY: {1559 errno: 1350,1560 errmsg: "\u8bf7\u8f93\u5165\u6821\u9a8c\u7801"1561 },1562 SMS_TOKEN_INCORRECT: {1563 errno: 1351,1564 errmsg: "\u6821\u9a8c\u7801\u683c\u5f0f\u4e0d\u6b63\u786e"1565 },1566 IDNUMBER_EMPTY: {1567 errno: "ms100",1568 errmsg: "\u8bf7\u8f93\u5165\u8bc1\u4ef6\u53f7\u7801"1569 },1570 IDNUMBER_INVALID: {1571 errno: "ms100",1572 errmsg: "\u8bf7\u6b63\u786e\u586b\u5199\u8bc1\u4ef6\u53f7\u7801"1573 },1574 AREAR_INVALID: {1575 errno: "ms100",1576 errmsg: "\u8bf7\u9009\u62e9\u6b63\u786e\u7684\u5e38\u9a7b\u7701\u5e02"1577 },1578 ADDRESS_EMPTY: {1579 errono: "ms100",1580 errmsg: "\u8bf7\u8f93\u5165\u8054\u7cfb\u5730\u5740"1581 },1582 ZIPCODE_EMPTY: {1583 errno: "ms100",1584 errmsg: "\u8bf7\u8f93\u5165\u90ae\u653f\u7f16\u7801"1585 },1586 ZIPCODE_INVALIDE: {1587 errno: "ms100",1588 errmsg: "\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u90ae\u653f\u7f16\u7801"1589 },1590 DATE_INVALID: {1591 errno: "ms100",1592 errmsg: "\u8bf7\u9009\u62e9\u6b63\u786e\u7684\u65e5\u671f"1593 },1594 PASSWORD_EMPTY: {1595 errno: 211,1596 errmsg: "\u8bf7\u8f93\u5165\u5bc6\u7801"1597 },1598 PASSWORD_INVALID: {1599 errno: 1065,1600 errmsg: "\u5bc6\u7801\u4e3a6-20\u4e2a\u5b57\u7b26"1601 },1602 PASSWORD_LEVEL_LOW: {1603 errno: 1070,1604 errmsg: "\u5bc6\u7801\u5b89\u5168\u7ea7\u522b\u8fc7\u4f4e"1605 },1606 PASSWORD_WEAK: {1607 errno: 1070,1608 errmsg: "\u5bc6\u7801\u5f31\uff0c\u6709\u98ce\u9669\uff0c\u8bf7\u91cd\u65b0\u8f93\u5165"1609 },1610 PASSWORD_ORDERED: {1611 errno: 1070,1612 errmsg: "\u5bc6\u7801\u4e0d\u80fd\u4e3a\u8fde\u7eed\u5b57\u7b26"1613 },1614 PASSWORD_CHAR_REPEAT: {1615 errno: 1070,1616 errmsg: "\u5bc6\u7801\u4e0d\u80fd\u5168\u4e3a\u76f8\u540c\u5b57\u7b26"1617 },1618 PASSWORD_WRONG: {1619 errno: 220,1620 errmsg: "\u767b\u5f55\u5bc6\u7801\u9519\u8bef\uff0c\u8bf7\u91cd\u65b0\u8f93\u5165"1621 },1622 PASSWORD_NOT_MATCH: {1623 errno: 1091,1624 errmsg: "\u4e24\u6b21\u5bc6\u7801\u8f93\u5165\u4e0d\u4e00\u81f4"1625 },1626 UNKNOWN_ERROR: {1627 errno: 99999,1628 errmsg: "\u672a\u77e5\u9519\u8bef"1629 },1630 SUCCESS: {1631 errno: 0,1632 errmsg: "\u64cd\u4f5c\u6210\u529f"1633 },1634 TIME_OUT: {1635 errno: 1,1636 errmsg: "\u7f51\u7edc\u8d85\u65f6"1637 }1638 },1639 n = e.utils = e.utils || {},1640 r = {};1641 $(t).each(function(e) {1642 r[e.errno] = e.errmsg1643 }),1644 n.isSameError = function(e, t) {1645 return e.errno === undefined || t.errno === undefined ? !1 : e.errno === t.errno1646 },1647 n.defineError = function(e, n) {1648 var i;1649 for (var s in t) t.hasOwnProperty(s) && t[s].errno == e && (i = t[s], i.errmsg = n);1650 r[e] = n1651 },1652 n.getErrorMsg = function(e, t) {1653 return $.isPlainObject(e) && (t = e.errmsg, e = e.errno),1654 r[e] || t1655 },1656 n.getErrorType = function(e) {1657 e = e.errno || e;1658 switch (e) {1659 case t.MOBILE_EMPTY.errno:1660 case t.MOBILE_INVALID.errno:1661 return "mobile";1662 case t.EMAIL_EMPTY.errno:1663 case t.EMAIL_INVALID.errno:1664 return "email";1665 case t.USERNAME_EMPTY.errno:1666 case t.USERNAME_INVALID.errno:1667 case t.USERNAME_DUPLICATE.errno:1668 return "username";1669 case t.NICKNAME_EMPTY.errno:1670 case t.NICKNAME_INVALID.errno:1671 case t.NICKNAME_TOO_SHORT.errno:1672 case t.NICKNAME_DUPLICATE.errno:1673 return "nickname";1674 case t.PASSWORD_INVALID.errno:1675 case t.PASSWORD_EMPTY.errno:1676 case t.PASSWORD_CHAR_REPEAT.errno:1677 case t.PASSWORD_ORDERED.errno:1678 case t.PASSWORD_WEAK.errno:1679 case t.PASSWORD_WRONG.errno:1680 case t.PASSWORD_LEVEL_LOW.errno:1681 return "password";1682 case t.PASSWORD_NOT_MATCH.errno:1683 return "password-again";1684 case t.SMS_TOKEN_EMPTY.errno:1685 case t.SMS_TOKEN_INCORRECT.errno:1686 return "sms-token"1687 }1688 return e >= 1e4 && e < 15e3 ? "username": e >= 15e3 && e < 2e4 ? "nickname": e >= 2e4 && e < 3e4 ? "email": e >= 3e4 && e < 45e3 ? "mobile": e >= 5e4 && e < 55e3 ? "password": e >= 55e3 && e < 6e4 ? "sec-email": "other"1689 }1690 } (QHPass),1691 function(e, t) {1692 "use strict";1693 function r(e) {1694 return String(e).replace(/[^\x00-\xff]/g, "--").length1695 }1696 function i(e, t, n) {1697 var i = r(e);1698 return t <= i && i <= n1699 }1700 function s(e) {1701 return e = e === undefined ? "": e,1702 e.length == 01703 }1704 function o(e) {1705 e = String(e);1706 var t = e.length,1707 n = null,1708 r;1709 for (var i = 1; i < t; i++) {1710 r = e.charCodeAt(i) - e.charCodeAt(i - 1);1711 if (n !== null && n !== r || Math.abs(r) > 1) return ! 1;1712 n = r1713 }1714 return ! 01715 }1716 function u(e) {1717 var n = [],1718 r;1719 if (!t.isArray(e)) throw new Error("TypeError: not Array");1720 e = e.sort();1721 if (e.length == 1) return e;1722 for (var i = 1,1723 s = 0; r = e[i]; i++) r === e[i - 1] && (s = n.push(i));1724 while (s--) e.splice(n[s], 1);1725 return e1726 }1727 function f(e) {1728 e = String(e);1729 var n = e.length,1730 r = e.split(""),1731 i = t.unique(r),1732 s;1733 if (n >= 21 || n <= 5) return - 1;1734 if (i.length == 1) return - 2;1735 if (o(e)) return - 3;1736 if (a.join("#").indexOf("#" + e + "#") > -1) return - 4;1737 var u = {1738 d: 0,1739 c: 0,1740 o: 01741 };1742 return t.each(i,1743 function(e, t) { / \d / .test(t) ? u.d = 1 : /[a-zA-Z]/.test(t) ? u.c = 1 : u.o = 11744 }),1745 s = u.d + u.c + u.o + (n > 9 ? 2 : 1),1746 s = Math.max(3, s),1747 s1748 }1749 var n = e.ERROR;1750 t.unique = t.unique || u;1751 var a = ["", "abcabc", "abc123", "a1b2c3", "aaa111", "123abc", "123456abc", "abc123456", "qwerty", "qwertyuiop", "qweasd", "123qwe", "1qaz2wsx", "1q2w3e4r", "1q2w3e4r5t", "asdasd", "asdfgh", "asdfghjkl", "zxcvbn", "qazwsxedc", "qq123456", "admin", "password", "p@ssword", "passwd", "Password", "Passwd", "Iloveyou", "Woaini", "iloveyou", "Wodemima", "Woaiwojia", "tamade", "nimade", "123789", "1234560", "123465", "123321", "102030", "100200", "4655321", "987654", "123123", "123123123", "121212", "111222", "12301230", "168168", "456456", "321321", "521521", "5201314", "520520", "201314", "211314", "7758258", "7758521", "1314520", "1314521", "147258369", "147852369", "159357", "741852", "741852963", "654321", "852963", "963852741", "115415", "123000", ""];1752 QHPass.validate = {1753 checkRealName: function(e) {1754 return e = t.trim(e),1755 s(e) ? n.REALNAME_EMPTY: /^[\u4e00-\u9fa5]{2,5}$/.test(e) ? !1 : n.REALNAME_INVALID1756 },1757 checkUsername: function(e) {1758 return e = t.trim(e),1759 s(e) ? n.USERNAME_EMPTY: /^[\w\u4e00-\u9fa5\.]{2,14}$/.test(e) ? !1 : n.USERNAME_INVALID1760 },1761 checkNickname: function(e) {1762 return e = t.trim(e),1763 s(e) ? n.NICKNAME_EMPTY: i(e, 2, 14) ? /^[\w\u4e00-\u9fa5\.]{2,14}$/.test(e) ? !1 : n.NICKNAME_INVALID: n.NICKNAME_TOO_SHORT1764 },1765 checkEmail: function(e) {1766 var r = /^[a-z0-9](?:[\w.\-+]*[a-z0-9])?@[a-z0-9][\w.]*\.[a-z]{2,8}$/i;1767 return e = t.trim(e),1768 s(e) ? n.EMAIL_EMPTY: r.test(e) ? !1 : n.EMAIL_INVALID1769 },1770 checkMobile: function(e) {1771 return e = t.trim(e),1772 s(e) ? n.MOBILE_EMPTY: /^0?1[345789]\d{9}$/.test(e) ? !1 : n.MOBILE_INVALID1773 },1774 checkAccount: function(e) {1775 return e.length == 0 ? n.ACCOUNT_EMPTY: this.checkUsername(e) && this.checkEmail(e) && this.checkMobile(e) ? n.ACCOUNT_INVALID: !11776 },1777 checkCaptcha: function(e) {1778 return e = t.trim(e),1779 s(e) ? n.CAPTCHA_INVALID: !11780 },1781 checkSmsToken: function(e) {1782 return e = t.trim(e),1783 s(e) ? n.SMS_TOKEN_EMPTY: e.length != 6 || isNaN(e) ? n.SMS_TOKEN_INCORRECT: !11784 },1785 checkPassword: function(e) {1786 if (s(e)) return n.PASSWORD_EMPTY;1787 switch (f(e)) {1788 case - 1 : return n.PASSWORD_INVALID;1789 case - 2 : return n.PASSWORD_CHAR_REPEAT;1790 case - 3 : return n.PASSWORD_ORDERED;1791 case - 4 : return n.PASSWORD_WEAK;1792 default:1793 return ! 11794 }1795 },1796 evaluatePassword: function(e) {1797 return f(e)1798 },1799 checkPasswordConfirm: function(e, t) {1800 return e === t ? !1 : n.PASSWORD_NOT_MATCH1801 },1802 checkIdNumber: function(n, r) {1803 n = t.trim(n);1804 if (s(n)) return e.ERROR.IDNUMBER_EMPTY;1805 switch (r) {1806 case "idCard":1807 var i = isCnNewID(n);1808 if (n.length == 15) {1809 var o = idCardOldTowNew(n);1810 i = isCnNewID(o)1811 }1812 if (!i) return e.ERROR.IDNUMBER_INVALID1813 }1814 return ! 11815 },1816 checkDate: function(t, n, r) {1817 return t != -1 && n != -1 && r != -1 ? !1 : e.ERROR.DATE_INVALID1818 },1819 checkProvinceCity: function(n, r) {1820 return n = t.trim(n),1821 r = t.trim(r),1822 n != -2 && r != -2 ? !1 : e.ERROR.AREAR_INVALID1823 },1824 checkAddress: function(n) {1825 return n = t.trim(n),1826 s(n) ? e.ERROR.ADDRESS_EMPTY: !11827 },1828 checkZipcode: function(n) {1829 n = t.trim(n);1830 if (s(n)) return e.ERROR.ZIPCODE_EMPTY;1831 var r = /\d{6}/;1832 return r.test(n) ? !1 : e.ERROR.ZIPCODE_INVALIDE1833 }1834 }1835 } (QHPass, window.Zepto || window.jQuery),1836 function() {1837 if (typeof window.monitor != "undefined") return;1838 var e = "V1.2.4(2012.10.23)",1839 t = "360.cn",1840 n = function(r, s) {1841 var o = document,1842 u = navigator,1843 a = r.screen,1844 f = document.domain.toLowerCase(),1845 l = u.userAgent.toLowerCase(),1846 c = {1847 trim: function(e) {1848 return e.replace(/^[\s\xa0\u3000]+|[\u3000\xa0\s]+$/g, "")1849 }1850 },1851 h = {1852 on: function(e, t, n) {1853 e.addEventListener ? e && e.addEventListener(t, n, !1) : e && e.attachEvent("on" + t, n)1854 },1855 parentNode: function(e, t, n) {1856 n = n || 5,1857 t = t.toUpperCase();1858 while (e && n-->0) {1859 if (e.tagName === t) return e;1860 e = e.parentNode1861 }1862 return null1863 }1864 },1865 p = {1866 fix: function(e) {1867 if (! ("target" in e)) {1868 var t = e.srcElement || e.target;1869 t && t.nodeType == 3 && (t = t.parentNode),1870 e.target = t1871 }1872 return e1873 }1874 },1875 d = function() {1876 function e(e) {1877 return e != null && e.constructor != null ? Object.prototype.toString.call(e).slice(8, -1) : ""1878 }1879 return {1880 isArray: function(t) {1881 return e(t) == "Array"1882 },1883 isObject: function(e) {1884 return e !== null && typeof e == "object"1885 },1886 mix: function(e, t, n) {1887 for (i in t) if (n || !(e[i] || i in e)) e[i] = t[i];1888 return e1889 },1890 encodeURIJson: function(e) {1891 var t = [];1892 for (var n in e) {1893 if (e[n] == null) continue;1894 t.push(encodeURIComponent(n) + "=" + encodeURIComponent(e[n]))1895 }1896 return t.join("&")1897 }1898 }1899 } (),1900 v = {1901 get: function(e) {1902 var t, n = new RegExp("(^| )" + e + "=([^;]*)(;|$)");1903 return (t = o.cookie.match(n)) ? unescape(t[2]) : ""1904 },1905 set: function(e, t, n) {1906 n = n || {};1907 var r = n.expires;1908 typeof r == "number" && (r = new Date, r.setTime(r.getTime() + n.expires)),1909 o.cookie = e + "=" + escape(t) + (r ? ";expires=" + r.toGMTString() : "") + (n.path ? ";path=" + n.path: "") + (n.domain ? "; domain=" + n.domain: "")1910 }1911 },1912 m = {1913 getProject: function() {1914 return ""1915 },1916 getReferrer: function() {1917 return o.referrer1918 },1919 getBrowser: function() {1920 var e = {1921 "360se-ua": "360se",1922 TT: "tencenttraveler",1923 Maxthon: "maxthon",1924 GreenBrowser: "greenbrowser",1925 Sogou: "se 1.x / se 2.x",1926 TheWorld: "theworld"1927 };1928 for (i in e) if (l.indexOf(e[i]) > -1) return i;1929 var t = !1;1930 try { + external.twGetVersion(external.twGetSecurityID(r)).replace(/\./g, "") > 1013 && (t = !0)1931 } catch(n) {}1932 if (t) return "360se-noua";1933 var s = l.match(/(msie|chrome|safari|firefox|opera)/);1934 return s = s ? s[0] : "",1935 s == "msie" && (s = l.match(/msie[^;]+/)),1936 s1937 },1938 getLocation: function() {1939 var e = "";1940 try {1941 e = location.href1942 } catch(t) {1943 e = o.createElement("a"),1944 e.href = "",1945 e = e.href1946 }1947 return e = e.replace(/[?#].*$/, ""),1948 e = /\.(s?htm|php)/.test(e) ? e: e.replace(/\/$/, "") + "/",1949 e1950 },1951 getGuid: function() {1952 function e(e) {1953 var t = 0,1954 n = 0,1955 r = e.length - 1;1956 for (r; r >= 0; r--) {1957 var i = parseInt(e.charCodeAt(r), 10);1958 t = (t << 6 & 268435455) + i + (i << 14),1959 (n = t & 266338304) != 0 && (t ^= n >> 21)1960 }1961 return t1962 }1963 function n() {1964 var t = [u.appName, u.version, u.language || u.browserLanguage, u.platform, u.userAgent, a.width, "x", a.height, a.colorDepth, o.referrer].join(""),1965 n = t.length,1966 i = r.history.length;1967 while (i) t += i--^n++;1968 return (Math.round(Math.random() * 2147483647) ^ e(t)) * 21474836471969 }1970 var i = "__guid",1971 s = v.get(i);1972 if (!s) {1973 s = [e(o.domain), n(), +(new Date) + Math.random() + Math.random()].join(".");1974 var l = {1975 expires: 2592e7,1976 path: "/"1977 };1978 if (t) {1979 var c = "." + t;1980 if (f.indexOf(c) > 0 && f.lastIndexOf(c) == f.length - c.length || f == c) l.domain = c1981 }1982 v.set(i, s, l)1983 }1984 return function() {1985 return s1986 }1987 } (),1988 getCount: function() {1989 var e = "count",1990 t = v.get(e);1991 return t = (parseInt(t) || 0) + 1,1992 v.set(e, t, {1993 expires: 864e5,1994 path: "/"1995 }),1996 function() {1997 return t1998 }1999 } (),2000 getFlashVer: function() {2001 var e = -1;2002 if (u.plugins && u.mimeTypes.length) {2003 var t = u.plugins["Shockwave Flash"];2004 t && t.description && (e = t.description.replace(/([a-zA-Z]|\s)+/, "").replace(/(\s)+r/, ".") + ".0")2005 } else if (r.ActiveXObject && !r.opera) for (var n = 16; n >= 2; n--) try {2006 var i = new ActiveXObject("ShockwaveFlash.ShockwaveFlash." + n);2007 if (i) {2008 var s = i.GetVariable("$version");2009 e = s.replace(/WIN/g, "").replace(/,/g, ".")2010 }2011 } catch(o) {}2012 return e = parseInt(e, 10),2013 function() {2014 return e2015 }2016 } (),2017 getContainerId: function(e) {2018 var t = y.areaIds;2019 if (t) {2020 var n, r = new RegExp("^(" + t.join("|") + ")$", "ig");2021 while (e) {2022 if (e.id && r.test(e.id)) return (e.getAttribute("data-desc") || e.id).substr(0, 100);2023 e = e.parentNode2024 }2025 }2026 return ""2027 },2028 getText: function(e) {2029 return c.trim((e.getAttribute("text") || e.innerText || e.textContent || e.title || "").substr(0, 100))2030 }2031 },2032 g = {2033 getBase: function() {2034 return {2035 p: m.getProject(),2036 u: m.getLocation(),2037 id: m.getGuid(),2038 guid: m.getGuid()2039 }2040 },2041 getTrack: function() {2042 return {2043 b: m.getBrowser(),2044 c: m.getCount(),2045 r: m.getReferrer(),2046 fl: m.getFlashVer()2047 }2048 },2049 getClick: function(e) {2050 e = p.fix(e || event);2051 var t = e.target,2052 n = t.tagName,2053 r = m.getContainerId(t);2054 if (t.type != "submit") {2055 if (n == "AREA") return {2056 f: t.href,2057 c: "area:" + t.parentNode.name,2058 cId: r2059 };2060 var i, s;2061 return n == "IMG" && (i = t),2062 t = h.parentNode(t, "A"),2063 t ? (s = m.getText(t), {2064 f: t.href,2065 c: s ? s: i ? i.src.match(/[^\/]+$/) : "",2066 cId: r2067 }) : !12068 }2069 var o = h.parentNode(t, "FORM");2070 if (o) {2071 var u = o.id || "",2072 a = t.id,2073 f = {2074 f: o.action,2075 c: "form:" + (o.name || u),2076 cId: r2077 };2078 if ((u == "search-form" || u == "searchForm") && (a == "searchBtn" || a == "search-btn")) {2079 var l = b("kw") || b("search-kw") || b("kw1");2080 f.w = l ? l.value: ""2081 }2082 return f2083 }2084 },2085 getKeydown: function(e) {2086 e = p.fix(e || event);2087 if (e.keyCode != 13) return ! 1;2088 var t = e.target,2089 n = t.tagName,2090 r = m.getContainerId(t);2091 if (n == "INPUT") {2092 var i = h.parentNode(t, "FORM");2093 if (i) {2094 var s = i.id || "",2095 o = t.id,2096 u = {2097 f: i.action,2098 c: "form:" + (i.name || s),2099 cId: r2100 };2101 if (o == "kw" || o == "search-kw" || o == "kw1") u.w = t.value;2102 return u2103 }2104 }2105 return ! 12106 }2107 },2108 y = {2109 trackUrl: null,2110 clickUrl: null,2111 areaIds: null2112 },2113 b = function(e) {2114 return document.getElementById(e)2115 };2116 return {2117 version: e,2118 util: m,2119 data: g,2120 config: y,2121 sendLog: function() {2122 return r.__monitor_imgs = {},2123 function(e) {2124 var t = "log_" + +(new Date),2125 n = r.__monitor_imgs[t] = new Image;2126 n.onload = n.onerror = function() {2127 r.__monitor_imgs[t] = null,2128 delete r.__monitor_imgs[t]2129 },2130 n.src = e2131 }2132 } (),2133 buildLog: function() {2134 var e = "";2135 return function(t, n) {2136 if (t === !1) return;2137 t = t || {};2138 var r = g.getBase();2139 t = d.mix(r, t, !0);2140 var i = n + d.encodeURIJson(t);2141 if (i == e) return;2142 e = i,2143 setTimeout(function() {2144 e = ""2145 },2146 500);2147 var s = d.encodeURIJson(t);2148 s += "&t=" + +(new Date),2149 n = n.indexOf("?") > -1 ? n + "&" + s: n + "?" + s,2150 this.sendLog(n)2151 }2152 } (),2153 log: function(e, t) {2154 t = t || "click";2155 var n = y[t + "Url"];2156 n || alert("Error : the " + t + "url does not exist!"),2157 this.buildLog(e, n)2158 },2159 setConf: function(e, t) {2160 var n = {};2161 return d.isObject(e) ? n = e: n[e] = t,2162 this.config = d.mix(this.config, n, !0),2163 this2164 },2165 setUrl: function(e) {2166 return e && (this.util.getLocation = function() {2167 return e2168 }),2169 this2170 },2171 setProject: function(e) {2172 return e && (this.util.getProject = function() {2173 return e2174 }),2175 this2176 },2177 setId: function() {2178 var e = [],2179 t = 0,2180 n;2181 while (n = arguments[t++]) d.isArray(n) ? e = e.concat(n) : e.push(n);2182 return this.setConf("areaIds", e),2183 this2184 },2185 getTrack: function() {2186 var e = this.data.getTrack();2187 return this.log(e, "track"),2188 this2189 },2190 getClickAndKeydown: function() {2191 var e = this;2192 return h.on(o, "mousedown",2193 function(t) {2194 var n = e.data.getClick(t);2195 e.log(n, "click")2196 }),2197 h.on(o, "keydown",2198 function(t) {2199 var n = e.data.getKeydown(t);2200 e.log(n, "click")2201 }),2202 n.getClickAndKeydown = function() {2203 return e2204 },2205 this2206 }2207 }2208 } (window);2209 n.setConf({2210 trackUrl: "http://s.360.cn/w360/s.htm",2211 clickUrl: "http://s.360.cn/w360/c.htm",2212 wpoUrl: "http://s.360.cn/w360/p.htm"2213 }),2214 window.monitor = n2215 } ();2216 (function(e, t) {2217 //typeof exports == "object" ? module.exports = t() : typeof define == "function" && define.amd ? define("module/detector/1.3.0/detector", [], t) : e.detector = t()2218 e.detector = t();2219 })(this,2220 function() {2221 function u(e) {2222 return Object.prototype.toString.call(e)2223 }2224 function a(e) {2225 return u(e) === "[object Object]"2226 }2227 function f(e) {2228 return u(e) === "[object Function]"2229 }2230 function l(e, t, n) {2231 for (var r = 0,2232 i, s = e.length; r < s; r++) if (t.call(e, e[r], r) === !1) break2233 }2234 function p(e) {2235 if (!o.test(e)) return null;2236 var t, n, r, i, s, u = !1;2237 if (e.indexOf("trident/") !== -1) {2238 t = /\btrident\/([0-9.]+)/.exec(e);2239 if (t && t.length >= 2) {2240 r = t[1];2241 var a = t[1].split(".");2242 a[0] = parseInt(a[0], 10) + 4,2243 s = a.join(".")2244 }2245 }2246 t = o.exec(e),2247 i = t[1];2248 var f = t[1].split(".");2249 return "undefined" == typeof s && (s = i),2250 f[0] = parseInt(f[0], 10) - 4,2251 n = f.join("."),2252 "undefined" == typeof r && (r = n),2253 {2254 browserVersion: s,2255 browserMode: i,2256 engineVersion: r,2257 engineMode: n,2258 compatible: r !== n2259 }2260 }2261 function d(e) {2262 if (!s) return;2263 try {2264 var t = s.twGetRunPath.toLowerCase(),2265 n = s.twGetSecurityID(window),2266 r = s.twGetVersion(n);2267 if (t && t.indexOf(e) === -1) return ! 1;2268 if (r) return {2269 version: r2270 }2271 } catch(i) {}2272 }2273 function g(e, n, r) {2274 var i = f(n) ? n.call(null, r) : n;2275 if (!i) return null;2276 var s = {2277 name: e,2278 version: t,2279 codename: ""2280 },2281 o = u(i);2282 if (i === !0) return s;2283 if (o === "[object String]") {2284 if (r.indexOf(i) !== -1) return s2285 } else {2286 if (a(i)) return i.hasOwnProperty("version") && (s.version = i.version),2287 s;2288 if (i.exec) {2289 var l = i.exec(r);2290 if (l) return l.length >= 2 && l[1] ? s.version = l[1].replace(/_/g, ".") : s.version = t,2291 s2292 }2293 }2294 }2295 function b(e, t, n, r) {2296 var i = y;2297 l(t,2298 function(t) {2299 var n = g(t[0], t[1], e);2300 if (n) return i = n,2301 !12302 }),2303 n.call(r, i.name, i.version)2304 }2305 var e = {},2306 t = "-1",2307 n = navigator.userAgent || "",2308 r = navigator.appVersion || "",2309 i = navigator.vendor || "",2310 s = window.external,2311 o = /\b(?:msie |ie |trident\/[0-9].*rv[ :])([0-9.]+)/,2312 c = [["nokia",2313 function(e) {2314 return e.indexOf("nokia ") !== -1 ? /\bnokia ([0-9]+)?/: e.indexOf("noain") !== -1 ? /\bnoain ([a-z0-9]+)/: /\bnokia([a-z0-9]+)?/2315 }], ["samsung",2316 function(e) {2317 return e.indexOf("samsung") !== -1 ? /\bsamsung(?:\-gt)?[ \-]([a-z0-9\-]+)/: /\b(?:gt|sch)[ \-]([a-z0-9\-]+)/2318 }], ["wp",2319 function(e) {2320 return e.indexOf("windows phone ") !== -1 || e.indexOf("xblwp") !== -1 || e.indexOf("zunewp") !== -1 || e.indexOf("windows ce") !== -12321 }], ["pc", "windows"], ["ipad", "ipad"], ["ipod", "ipod"], ["iphone", /\biphone\b|\biph(\d)/], ["mac", "macintosh"], ["mi", /\bmi[ \-]?([a-z0-9 ]+(?= build))/], ["aliyun", /\baliyunos\b(?:[\-](\d+))?/], ["meizu", /\b(?:meizu\/|m)([0-9]+)\b/], ["nexus", /\bnexus ([0-9s.]+)/], ["huawei",2322 function(e) {2323 return e.indexOf("huawei-huawei") !== -1 ? /\bhuawei\-huawei\-([a-z0-9\-]+)/: /\bhuawei[ _\-]?([a-z0-9]+)/2324 }], ["lenovo",2325 function(e) {2326 return e.indexOf("lenovo-lenovo") !== -1 ? /\blenovo\-lenovo[ \-]([a-z0-9]+)/: /\blenovo[ \-]?([a-z0-9]+)/2327 }], ["zte",2328 function(e) {2329 return /\bzte\-[tu]/.test(e) ? /\bzte-[tu][ _\-]?([a-su-z0-9\+]+)/: /\bzte[ _\-]?([a-su-z0-9\+]+)/2330 }], ["vivo", /\bvivo ([a-z0-9]+)/], ["htc",2331 function(e) {2332 return /\bhtc[a-z0-9 _\-]+(?= build\b)/.test(e) ? /\bhtc[ _\-]?([a-z0-9 ]+(?= build))/: /\bhtc[ _\-]?([a-z0-9 ]+)/2333 }], ["oppo", /\boppo[_]([a-z0-9]+)/], ["konka", /\bkonka[_\-]([a-z0-9]+)/], ["sonyericsson", /\bmt([a-z0-9]+)/], ["coolpad", /\bcoolpad[_ ]?([a-z0-9]+)/], ["lg", /\blg[\-]([a-z0-9]+)/], ["android", "android"], ["blackberry", "blackberry"]],2334 h = [["wp",2335 function(e) {2336 return e.indexOf("windows phone ") !== -1 ? /\bwindows phone (?:os )?([0-9.]+)/: e.indexOf("xblwp") !== -1 ? /\bxblwp([0-9.]+)/: e.indexOf("zunewp") !== -1 ? /\bzunewp([0-9.]+)/: "windows phone"2337 }], ["windows", /\bwindows nt ([0-9.]+)/], ["macosx", /\bmac os x ([0-9._]+)/], ["ios",2338 function(e) {2339 return /\bcpu(?: iphone)? os /.test(e) ? /\bcpu(?: iphone)? os ([0-9._]+)/: e.indexOf("iph os ") !== -1 ? /\biph os ([0-9_]+)/: /\bios\b/2340 }], ["yunos", /\baliyunos ([0-9.]+)/], ["android", /\bandroid[\/\- ]?([0-9.x]+)?/], ["chromeos", /\bcros i686 ([0-9.]+)/], ["linux", "linux"], ["windowsce", /\bwindows ce(?: ([0-9.]+))?/], ["symbian", /\bsymbian(?:os)?\/([0-9.]+)/], ["meego", /\bmeego\b/], ["blackberry", "blackberry"]],2341 v = [["trident", o], ["webkit", /\bapplewebkit[\/]?([0-9.+]+)/], ["gecko", /\bgecko\/(\d+)/], ["presto", /\bpresto\/([0-9.]+)/], ["androidwebkit", /\bandroidwebkit\/([0-9.]+)/], ["coolpadwebkit", /\bcoolpadwebkit\/([0-9.]+)/]],2342 m = [["sg", / se ([0-9.x]+)/], ["tw",2343 function(e) {2344 var t = d("theworld");2345 return typeof t != "undefined" ? t: "theworld"2346 }], ["360",2347 function(e) {2348 var t = d("360se");2349 return typeof t != "undefined" ? t: e.indexOf("360 aphone browser") !== -1 ? /\b360 aphone browser \(([^\)]+)\)/: /\b360(?:se|ee|chrome|browser)\b/2350 }], ["mx",2351 function(e) {2352 try {2353 if (s && (s.mxVersion || s.max_version)) return {2354 version: s.mxVersion || s.max_version2355 }2356 } catch(t) {}2357 return /\bmaxthon(?:[ \/]([0-9.]+))?/2358 }], ["qq", /\bm?qqbrowser\/([0-9.]+)/], ["green", "greenbrowser"], ["tt", /\btencenttraveler ([0-9.]+)/], ["lb",2359 function(e) {2360 if (e.indexOf("lbbrowser") === -1) return ! 1;2361 var n;2362 try {2363 s && s.LiebaoGetVersion && (n = s.LiebaoGetVersion())2364 } catch(r) {}2365 return {2366 version: n || t2367 }2368 }], ["tao", /\btaobrowser\/([0-9.]+)/], ["fs", /\bcoolnovo\/([0-9.]+)/], ["sy", "saayaa"], ["baidu", /\bbidubrowser[ \/]([0-9.x]+)/], ["ie", o], ["mi", /\bmiuibrowser\/([0-9.]+)/], ["opera",2369 function(e) {2370 var t = /\bopera.+version\/([0-9.ab]+)/,2371 n = /\bopr\/([0-9.]+)/;2372 return t.test(e) ? t: n2373 }], ["chrome", / (?:chrome|crios|crmo)\/([0-9.]+)/], ["uc",2374 function(e) {2375 return e.indexOf("ucbrowser/") >= 0 ? /\bucbrowser\/([0-9.]+)/: /\buc\/[0-9]/.test(e) ? /\buc\/([0-9.]+)/: e.indexOf("ucweb") >= 0 ? /\bucweb[\/]?([0-9.]+)?/: /\b(?:ucbrowser|uc)\b/2376 }], ["android",2377 function(e) {2378 if (e.indexOf("android") === -1) return;2379 return /\bversion\/([0-9.]+(?: beta)?)/2380 }], ["safari", /\bversion\/([0-9.]+(?: beta)?)(?: mobile(?:\/[a-z0-9]+)?)? safari\//], ["webview", /\bcpu(?: iphone)? os (?:[0-9._]+).+\bapplewebkit\b/], ["firefox", /\bfirefox\/([0-9.ab]+)/], ["nokia", /\bnokiabrowser\/([0-9.]+)/]],2381 y = {2382 name: "na",2383 version: t2384 },2385 w = function(e) {2386 e = (e || "").toLowerCase();2387 var t = {};2388 b(e, c,2389 function(e, n) {2390 var r = parseFloat(n);2391 t.device = {2392 name: e,2393 version: r,2394 fullVersion: n2395 },2396 t.device[e] = r2397 },2398 t),2399 b(e, h,2400 function(e, n) {2401 var r = parseFloat(n);2402 t.os = {2403 name: e,2404 version: r,2405 fullVersion: n2406 },2407 t.os[e] = r2408 },2409 t);2410 var n = p(e);2411 return b(e, v,2412 function(e, r) {2413 var i = r;2414 n && (r = n.engineVersion || n.engineMode, i = n.engineMode);2415 var s = parseFloat(r);2416 t.engine = {2417 name: e,2418 version: s,2419 fullVersion: r,2420 mode: parseFloat(i),2421 fullMode: i,2422 compatible: n ? n.compatible: !12423 },2424 t.engine[e] = s2425 },2426 t),2427 b(e, m,2428 function(e, r) {2429 var i = r;2430 n && (e === "ie" && (r = n.browserVersion), i = n.browserMode);2431 var s = parseFloat(r);2432 t.browser = {2433 name: e,2434 version: s,2435 fullVersion: r,2436 mode: parseFloat(i),2437 fullMode: i,2438 compatible: n ? n.compatible: !12439 },2440 t.browser[e] = s2441 },2442 t),2443 t2444 };2445 return e = w(n + " " + r + " " + i),2446 e.parse = w,2447 e2448 });2449 //registerInterface12450 function hex_md5(e) {2451 return binl2hex(core_md5(str2binl(e), e.length * chrsz))2452 }2453 QHDomain = window.QHDomain || {2454 i360: "http://i.360.cn",2455 login_https: "https://login.360.cn",2456 captcha: "http://captcha.360.cn",2457 login_http: "http://login.360.cn"2458 };2459 QHPass.resConfig = {2460 reloadAfterLogout: !0,2461 jumpUrl: "",2462 isByqt: !0,2463 logoutCallback: null2464 };2465 var _hostConf = "1360.com|360.cn|qihoo.com|qikoo.com|woxihuan.com|yunpan.cn|360pay.cn|360kan.com|so.com|leidian.com",2466 _hostArr = _hostConf.split("|"),2467 _hostShortArr = [],2468 _hostShort2long = {},2469 _i = 0,2470 _tmpHost,2471 _tmpHostName,2472 _l = _hostArr.length;2473 for (; _i < _l; _i++) _tmpHost = _hostArr[_i],2474 _tmpHostName = _tmpHost.split(".")[0],2475 _hostShortArr.push(_tmpHostName),2476 _hostShort2long[_tmpHostName] = _tmpHost;2477 QHPass._hostConf = _hostConf,2478 QHPass._hostShort = _hostShortArr.join("|"),2479 QHPass._hostShort2long = _hostShort2long;2480 var reHost = location.host.match(new RegExp(QHPass._hostConf.replace(/\./, "\\."), "ig"));2481 QHPass._hostCurr = reHost && reHost[0],2482 tipTextLogin = {2483 login_account_empty: "\u8bf7\u8f93\u5165\u60a8\u7684\u5e10\u53f7",2484 login_password_empty: "\u8bf7\u8f93\u5165\u60a8\u7684\u5bc6\u7801",2485 login_default_wrong: "\u5e10\u53f7\u6216\u5bc6\u7801\u9519\u8bef\uff0c\u8bf7\u91cd\u65b0\u8f93\u5165",2486 login_phrase_wrong: "\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u9a8c\u8bc1\u7801",2487 contact_kefu: ',<a target="_blank" href="http://i.360.cn/complaint">\u70b9\u6b64\u8054\u7cfb\u5ba2\u670d</a>'2488 },2489 QHPass.CrossDomainRequest = function(e, t, n, r) {2490 var i = +(new Date),2491 s = "";2492 typeof n == "string" ? s = n: (s = "_CrossDomainCallback" + i, window[s] = function() {2493 var e = decodeURIComponent(arguments[0]);2494 return o.parentNode.removeChild(o),2495 n(e)2496 });2497 var o = document.createElement("div");2498 o.innerHTML = '<iframe style="display:none" id="_CrossDomainiframe' + i + '" name="' + "_CrossDomainiframe" + i + '" src=""></iframe>',2499 document.body.appendChild(o);2500 var u = document.createElement("FORM");2501 u.style.display = "none",2502 u.method = r || "post",2503 u.target = "_CrossDomainiframe" + i,2504 u.action = e;2505 var a = [];2506 a.push('<input type="hidden" name="callback" value="' + s + '" />'),2507 a.push('<input type="hidden" name="proxy" value="//' + location.host + '/psp_jump.html" />'),2508 u.innerHTML = a.join("");2509 for (var f in t) {2510 var l = document.createElement("input");2511 l.setAttribute("type", "hidden"),2512 l.setAttribute("name", f),2513 l.setAttribute("value", t[f]),2514 u.appendChild(l)2515 }2516 document.body.appendChild(u),2517 u.submit(),2518 u.parentNode.removeChild(u)2519 },2520 QHPass.loadJs = function(e, t, n) {2521 n = n || {};2522 var r = document.getElementsByTagName("head")[0] || document.documentElement,2523 i = document.createElement("script"),2524 s = !1;2525 i.src = e,2526 n.charset && (i.charset = n.charset),2527 i.onerror = i.onload = i.onreadystatechange = function() { ! s && (!this.readyState || this.readyState == "loaded" || this.readyState == "complete") && (s = !0, t && t(), i.onerror = i.onload = i.onreadystatechange = null, r.removeChild(i))2528 },2529 r.insertBefore(i, r.firstChild)2530 },2531 QHPass.loadJsonp = function() {2532 var e = new Date * 1;2533 return function(t, n, r) {2534 r = r || {};2535 var i = "QiUserJsonP" + e++,2536 s = r.callbackReplacer || /%callback%/ig;2537 window[i] = function(e) {2538 n && n(e),2539 window[i] = null2540 },2541 s.test(t) ? t = t.replace(s, i) : t += (/\?/.test(t) ? "&": "?") + "callback=" + i,2542 QHPass.loadJs(t, null, r)2543 }2544 } (),2545 QHPass.g = function(e) {2546 return "string" == typeof e || e instanceof String ? document.getElementById(e) : e && e.nodeName && (e.nodeType == 1 || e.nodeType == 9) ? e: null2547 },2548 QHPass.trim = function(e) {2549 return e && e.replace(/^\s+|\s+$/g, "")2550 },2551 QHPass.forEach = function(e, t, n) {2552 for (var r = 0,2553 i = e.length; r < i; r++) r in e && t.call(n, e[r], r, e)2554 },2555 QHPass.byteLen = function(e) {2556 return e.replace(/[^\x00-\xff]/g, "--").length2557 },2558 QHPass.trace = function(e) {2559 window.console && window.console.log(e)2560 },2561 QHPass.execCallback = function(e, t) {2562 typeof e == "string" ? window.location.href = e: typeof e == "boolean" ? window.location.reload(e) : e && e(t)2563 },2564 QHPass.Cookie = QHPass.Cookie || {},2565 QHPass.Cookie.get = function(e) {2566 if (QHPass.Cookie._isValidKey(e)) {2567 var t = new RegExp("(^| )" + e + "=([^;]*)(;|$)"),2568 n = t.exec(document.cookie);2569 if (n) try {2570 return decodeURIComponent(n[2]) || null2571 } catch(r) {2572 return n[2] || null2573 }2574 }2575 return null2576 },2577 QHPass.Cookie._isValidKey = function(e) {2578 return (new RegExp('^[^\\x00-\\x20\\x7f\\(\\)<>@,;:\\\\\\"\\[\\]\\?=\\{\\}\\/\\u0080-\\uffff]+$')).test(e)2579 },2580 QHPass.Cookie.set = function(e, t, n) {2581 if (!QHPass.Cookie._isValidKey(e)) return;2582 n = n || {};2583 var r = n.expires;2584 "number" == typeof n.expires && (r = new Date, r.setTime(r.getTime() + n.expires)),2585 document.cookie = e + "=" + encodeURIComponent(t) + "; path=" + (n.path ? n.path: "/") + (r ? "; expires=" + r.toGMTString() : "") + (n.domain ? "; domain=" + n.domain: "") + (n.secure ? "; secure": "")2586 },2587 QHPass.Cookie.del = function(e) {2588 QHPass.Cookie.set(e, "")2589 },2590 QHPass.getUserInfo = function(e, t, n) {2591 if (QHPass.Cookie.get("Q") || !QHPass.resConfig.isByqt) {2592 var r = n || "http://login." + QHPass._hostCurr || QHDomain.login_http;2593 r += "/?o=sso&m=info&func=%callback%&show_name_flag=1",2594 QHPass.loadJsonp(r,2595 function(n) {2596 n.qid ? e && e(n) : t && t()2597 })2598 } else t && t()2599 },2600 QHPass.getRd = function(e, t) {2601 var n = "http://login.360.cn?o=sso&m=getRd";2602 QHPass.loadJsonp(n,2603 function(n) {2604 n.rd ? e && e(n.rd) : t && t(n)2605 })2606 },2607 QHPass.logoutOtherDomain = function(e) {2608 function t() {2609 QHPass.resConfig.logoutCallback ? QHPass.execCallback(QHPass.resConfig.logoutCallback) : location.reload(!0)2610 }2611 e.errno == 0 && (QHPass._hostCurr && QHPass._hostCurr !== "360.cn" ? QHPass.loadJsonp("http://login." + QHPass._hostCurr + "/?o=sso&m=logout&func=%callback%", t) : t())2612 },2613 QHPass.logout = function(e) {2614 e && (QHPass.resConfig.logoutCallback = e);2615 if (QHPass.Cookie.get("Q") || !QHPass.resConfig.isByqt) if (QHPass.resConfig.reloadAfterLogout) {2616 var t = QHPass.resConfig.jumpUrl || location.href;2617 location.href = QHDomain.login_http + "/?op=logout&destUrl=" + encodeURIComponent(t)2618 } else QHPass.loadJsonp(QHDomain.login_http + "/?o=sso&m=logout&func=%callback%", QHPass.logoutOtherDomain);2619 else e && QHPass.execCallback(e)2620 },2621 QHPass.cookieEnabled = function() {2622 var e = !0,2623 t = document.cookie.length,2624 n = Math.random(),2625 r = ["test", n, "test=test", ";expires=Thu, 01 Jan 9970 00:00:00 GMT", ";path=/"].join("");2626 return document.cookie = r,2627 document.cookie.length == t && (e = !1),2628 r = ["test", n, "test=test", ";expires=Thu, 01 Jan 1970 00:00:00 GMT", ";path=/"].join(""),2629 document.cookie = r,2630 e2631 },2632 QHPass.getCaptchaUrl = function(e, t, n) {2633 var r = QHDomain.i360 + "/QuCapt/getQuCaptUrl?captchaApp=" + t + "&captchaScene=" + e;2634 QHPass.loadJsonp(r,2635 function(e) {2636 e.errno == "0" && n && QHPass.execCallback(n, e.captchaUrl)2637 })2638 };2639 QHPass.mShowLogin = function(e, t) {2640 t = t || {},2641 QHPass.loginUtils.run(e, t)2642 },2643 QHPass.loginUtils = function() {2644 function S(t, n, r) {2645 QHPass.trace(t),2646 h += 1;2647 var i = QHPass.g(e.globalTips);2648 i && (i.innerHTML = n, i.style.display = "block"),2649 d && d({2650 type: t,2651 msg: n,2652 extra: r2653 }),2654 clearTimeout(QHPass._timeoutHandler)2655 }2656 function x(t, n, r) {2657 var i = QHPass.g(e.globalTips);2658 i && (i.innerHTML = n, i.style.display = "none"),2659 v && v({2660 type: t,2661 msg: n,2662 extra: r2663 })2664 }2665 function T() {2666 var t = e.account,2667 n = "account",2668 r = QHPass.byteLen(QHPass.g(t).value);2669 r || S(n, tipTextLogin.login_account_empty)2670 }2671 function N() {2672 var t = e.password,2673 n = "pwd",2674 r = QHPass.trim(QHPass.g(t).value);2675 r ? r && r.length < 6 && S(n, tipTextLogin.login_default_wrong) : S(n, tipTextLogin.login_password_empty)2676 }2677 function C() {2678 var t = e.phrase,2679 n = "phrase",2680 r = QHPass.trim(QHPass.g(t).value); (r.length <= 0 || r.length > 7) && S(n, tipTextLogin.login_phrase_wrong)2681 }2682 function k() {2683 QHPass.forEach(t,2684 function(e) {2685 e == "360pay" || e == "yunpan" || e == "360" ? n.push("http://login." + e + ".cn") : e == "mall" ? n.push("http://login.360.com") : n.push("http://login." + e + ".com")2686 })2687 }2688 function L() {2689 h = 0;2690 if (h != 0) return;2691 T();2692 if (h != 0) return;2693 N();2694 if (u) {2695 if (h != 0) return;2696 C()2697 }2698 if (h > 0) return;2699 beforeFun && beforeFun(),2700 QHPass._timeoutHandler = setTimeout(function() {2701 QHDomain.login_https = "http://login.360.cn",2702 A(),2703 y && y(),2704 QHPass._timeoutHandler = setTimeout(function() {2705 b && b(),2706 S("network", "\u7f51\u7edc\u8d85\u65f6~")2707 },2708 1e4)2709 },2710 1e4),2711 A()2712 }2713 function A() {2714 var t = QHDomain.login_https + "/?o=sso&m=getToken",2715 n = QHPass.trim(QHPass.g(e.account).value),2716 r = t + "&func=QHPass.loginUtils.tokenCallback&" + "userName=" + encodeURIComponent(n) + "&rand=" + Math.random();2717 QHPass.loadJsonp(r)2718 }2719 function O(t) {2720 var n = QHPass.trim(QHPass.g(e.account).value),2721 r = QHPass.g(e.password).value,2722 i = QHPass.g(e.isAutologin).checked ? 1 : 0,2723 s = QHPass.g(e.phrase).value;2724 t.errno != 0 ? S("token", decodeURIComponent(t.errmsg), t.errno) : M(n, r, i, t.token, s)2725 }2726 function M(e, t, n, r, i) {2727 var s = [];2728 s.push("userName=" + encodeURIComponent(e)),2729 s.push("pwdmethod=1"),2730 s.push("password=" + hex_md5(t)),2731 s.push("isKeepAlive=" + n),2732 s.push("token=" + r),2733 o ? (s.push("captFlag=1"), s.push("captchaApp=" + a), s.push("captcha=" + encodeURIComponent(i))) : s.push("captFlag="),2734 s.push("r=" + (new Date).getTime()),2735 w && w();2736 var u = QHDomain.login_https + "/?o=sso&m=login&from=" + p + "&rtype=data&func=QHPass.loginUtils.loginCallback";2737 QHPass.loadJsonp(u + "&" + s.join("&"))2738 }2739 function _(e) {2740 QHPass.getCaptchaUrl("login", a, e)2741 }2742 function D() {2743 QHPass.g(e.phraseImg).src = f + "&_=" + Math.random()2744 }2745 function P(e) {2746 E && E();2747 if (e.errno == 0) i = e.s,2748 r = e.userinfo,2749 H();2750 else switch (e.errno) {2751 case 1036:2752 S("account", tipTextLogin.login_default_wrong, e.errno);2753 break;2754 case 221:2755 var t = decodeURIComponent(e.errmsg) + tipTextLogin.contact_kefu;2756 S("account", t, e.errno);2757 break;2758 case 219:2759 case 220:2760 S("pwd", tipTextLogin.login_default_wrong, e.errno);2761 break;2762 case 2e4:2763 S("account", decodeURIComponent(e.errmsg), e.errno);2764 break;2765 case 78e3:2766 case 78002:2767 u = !0,2768 f = e.errdetail.captchaUrl,2769 l && l(),2770 S("phrase", decodeURIComponent(e.errmsg), e);2771 break;2772 default:2773 S("rd", decodeURIComponent(e.errmsg), e.errno)2774 }2775 }2776 function H() {2777 c = 0,2778 QHPass.loadJs(n[c] + "/?o=sso&m=setcookie&func=QHPass.loginUtils.rdCallBack&" + "s=" + i)2779 }2780 function B(e) {2781 e.errno == 0 ? (c += 1, c == n.length ? (clearTimeout(QHPass._timeoutHandler), QHPass.execCallback(s, r)) : QHPass.loadJs(n[c] + "/?o=sso&m=setcookie&func=QHPass.loginUtils.rdCallBack&" + "s=" + i)) : (clearTimeout(QHPass._timeoutHandler), QHPass.execCallback(s, r))2782 }2783 function j(n, r) {2784 e = r.doms,2785 t = r.domainList || t,2786 s = n,2787 p = r.src,2788 a = r.captchaAppId || a,2789 l = r.extFun.phrase,2790 d = r.extFun.error,2791 v = r.extFun.correct,2792 phraseTime = r.phraseTime || "start",2793 m = r.extFun.init,2794 y = r.extFun.httpsTimeout,2795 b = r.extFun.httpTimeout,2796 beforeFun = r.extFun.before,2797 w = r.extFun.loading,2798 E = r.extFun.after,2799 phraseTime == "start" ? u = !0 : u = !1,2800 k(),2801 QHPass.g(e.account).onblur = function() {2802 var t = QHPass.trim(this.value),2803 n = "http://login.360.cn/?&src=" + p + "&from=" + p + "&charset=UTF-8&requestScema=http&o=sso&m=checkNeedCaptcha&account=" + t + "&captchaApp=i360";2804 if (!t) return;2805 QHPass.loadJsonp(n,2806 function(t) {2807 t.errno == 0 && (f = t.captchaUrl, D(), t.captchaFlag ? (QHPass.g(e.phrase).parentNode.style.display = "block", u = !0) : (QHPass.g(e.phrase).parentNode.style.display = "none", u = !1))2808 })2809 },2810 m && m()2811 }2812 var e = {},2813 t = ["so", "qihoo", "haosou", "yunpan", "leidian", "qikoo", "360kan", "qiku", "mall"],2814 n = [],2815 r = null,2816 i = "",2817 s = "",2818 o = !0,2819 u = !1,2820 a = "i360",2821 f = "",2822 l = null,2823 c = 0,2824 h = 0,2825 p = "",2826 d = null,2827 v = null,2828 m = null,2829 g = null,2830 y = null,2831 b = null,2832 w = null,2833 E = null;2834 return QHPass._timeoutHandler = null,2835 {2836 run: j,2837 submit: L,2838 showError: S,2839 showCorrect: x,2840 tokenCallback: O,2841 loginCallback: P,2842 rdCallBack: B,2843 getCaptchaUrl: _,2844 setPhrase: D2845 }2846 } ();2847 //提示信息2848 var tipTextReg = {2849 reg_default_regUsername: "2-14\u4e2a\u5b57\u7b26\uff1a\u82f1\u6587\u3001\u6570\u5b57\u6216\u4e2d\u6587",2850 reg_default_password: "6-20\u4e2a\u5b57\u7b26\uff08\u533a\u5206\u5927\u5c0f\u5199\uff09",2851 reg_wrong_loginEmail_empty: "\u8bf7\u8f93\u5165\u60a8\u7684\u5e38\u7528\u90ae\u7bb1",2852 reg_wrong_loginEmail_format: "\u8bf7\u8f93\u5165\u6709\u6548\u7684\u90ae\u7bb1\u5730\u5740",2853 reg_wrong_default_regUsername: "\u8bf7\u8f93\u5165\u60a8\u7684\u7528\u6237\u540d",2854 reg_wrong_default_password: "\u5bc6\u7801\u5e94\u4e3a6-20\u4e2a\u5b57\u7b26\uff08\u533a\u5206\u5927\u5c0f\u5199\uff09",2855 reg_wrong_default_rePassword: "\u4e24\u6b21\u8f93\u5165\u7684\u5bc6\u7801\u4e0d\u4e00\u6837\uff0c\u8bf7\u91cd\u65b0\u8f93\u5165",2856 reg_wrong_default_phrase: "\u8bf7\u6b63\u786e\u586b\u5199\u9a8c\u8bc1\u7801",2857 reg_wrong_password_chinese: "\u5bc6\u7801\u4e0d\u80fd\u542b\u6709\u4e2d\u6587",2858 reg_wrong_password_same_chars: "\u5bc6\u7801\u4e0d\u80fd\u5168\u4e3a\u76f8\u540c\u5b57\u7b26",2859 reg_wrong_password_empty: "\u5bc6\u7801\u4e0d\u80fd\u4e3a\u7a7a",2860 reg_wrong_password_emptychars: "\u5bc6\u7801\u4e0d\u80fd\u5168\u90e8\u4e3a\u7a7a\u683c",2861 reg_wrong_password_weaklevel: "\u5bc6\u7801\u5f31\uff0c\u6709\u98ce\u9669\uff0c\u8bf7\u91cd\u65b0\u8f93\u5165",2862 reg_wrong_password_lx_chars: "\u5bc6\u7801\u4e0d\u80fd\u4e3a\u8fde\u7eed\u5b57\u7b26",2863 reg_wrong_phrase_input: "\u9a8c\u8bc1\u7801\u8f93\u5165\u9519\u8bef\uff0c\u8bf7\u91cd\u65b0\u8f93\u5165",2864 reg_wrong_phrase_ban: "\u9a8c\u8bc1\u7801\u8fde\u7eed\u9519\u8bef\u6b21\u6570\u8fc7\u591a\uff0c\u8bf7\u6539\u5929\u518d\u6765",2865 reg_wrong_isagree: "\u8bf7\u5148\u9605\u8bfb\u5e76\u540c\u610f\u300a360\u7528\u6237\u670d\u52a1\u6761\u6b3e\u300b",2866 reg_wrong_process_error: "\u6ce8\u518c\u8fc7\u7a0b\u4e2d\u53d1\u751f\u610f\u5916\uff0c\u8bf7\u5237\u65b0\u540e\u91cd\u8bd5",2867 net_check: "\u68c0\u67e5\u4e2d\uff0c\u8bf7\u7a0d\u540e...",2868 reg_wrong_username_short: "\u7528\u6237\u540d\u6700\u5c11\u4f7f\u75282\u4e2a\u5b57\u7b26\u6216\u6c49\u5b57",2869 reg_wrong_username_long: "\u7528\u6237\u540d\u4e0d\u8d85\u8fc77\u4e2a\u6c49\u5b57\u621614\u4e2a\u5b57\u7b26",2870 reg_wrong_username_chars: "\u7528\u6237\u540d\u4e0d\u80fd\u5305\u542b\u7279\u6b8a\u5b57\u7b26",2871 reg_wrong_username_empty: "\u8bf7\u8f93\u5165\u6709\u6548\u7684\u7528\u6237\u540d",2872 reg_wrong_smsCode_empty: "\u6821\u9a8c\u7801\u4e0d\u80fd\u4e3a\u7a7a",2873 reg_wrong_format_smsCode: "\u6821\u9a8c\u7801\u683c\u5f0f\u9519\u8bef",2874 reg_wrong_phone_empty: "\u8bf7\u8f93\u5165\u60a8\u7684\u5e38\u7528\u624b\u673a\u53f7\u7801",2875 reg_wrong_phone_format: "\u8bf7\u8f93\u5165\u6709\u6548\u7684\u624b\u673a\u53f7\u7801",2876 immediately_login_tips: ''2877 };2878 QHPass.mShowReg = function(e, t) {2879 t = t || {},2880 QHPass.regUtils.run(e, t)2881 },2882 QHPass.regUtils = function() {2883 function E(t, n, r) {2884 QHPass.trace(t),2885 f++;2886 var i = QHPass.g(e.globalTips);2887 i && (i.innerHTML = n, i.style.display = "block"),2888 p && p({2889 type: t,2890 msg: n,2891 extra: r2892 }),2893 clearTimeout(QHPass._timeoutHandler)2894 }2895 function S(t, n, r) {2896 var i = QHPass.g(e.globalTips);2897 i && (i.innerHTML = n, i.style.display = "none"),2898 d && d({2899 type: t,2900 msg: n,2901 extra: r2902 })2903 }2904 function x(t) {2905 var n = e.loginEmail,2906 r = "loginEmail",2907 i = QHPass.trim(QHPass.g(n).value),2908 s = QHDomain.login_http + "/index.php?op=checkemail&loginEmail=" + i + "&r=" + Math.random();2909 i ? T(i) ? t && QHPass.loadJsonp(s, N) : E(r, tipTextReg.reg_wrong_loginEmail_format) : E(r, tipTextReg.reg_wrong_loginEmail_empty)2910 }2911 function T(e) {2912 if (e.length > 100) return ! 1;2913 if (!/^([\w\-\.]+)@(([0-9a-zA-Z\-]+\.)+[a-zA-Z]{2,4})$/i.test(e)) return ! 1;2914 var t = e.split("@"),2915 n = t[1];2916 if (n == "163.com" || n == "126.com" || n == "yeah.net") if (!/^([a-zA-Z][\w]{5,17}|1(3|5|7|8|4)\d{9})$/.test(t[0])) return ! 1;2917 return ! 02918 }2919 function N(e) {2920 if (0 == e.res) S("loginEmail", e.msg, e.errno);2921 else if (e.errno == 2e4) E("loginEmail", e.msg, e.errno);2922 else if (1 == e.res) {2923 var t = e.msg + tipTextReg.immediately_login_tips;2924 E("loginEmail", t, e.errno)2925 } else E("loginEmail", e.msg, e.errno)2926 }2927 function C(t) {2928 var n = e.username,2929 r = "username",2930 i = QHPass.trim(QHPass.g(n).value),2931 s = QHPass.byteLen(i),2932 o = /^[0-9a-zA-Z\u4e00-\u9fa5_\.]*$/i,2933 u = QHDomain.login_http + "/index.php?op=checkuser&userName=" + encodeURIComponent(i) + "&r=" + Math.random();2934 i ? 0 == o.test(i) ? E(r, tipTextReg.reg_wrong_username_chars) : s < 2 ? E(r, tipTextReg.reg_wrong_username_short) : s > 14 ? E(r, tipTextReg.reg_wrong_username_long) : t && QHPass.loadJsonp(u, I) : E(r, tipTextReg.reg_wrong_username_empty)2935 }2936 function k() {2937 var t = "smsCode",2938 n = QHPass.trim(QHPass.g(e.smsCode).value);2939 n ? /^\d{6}$/.test(n) || E(t, tipTextReg.reg_wrong_format_smsCode) : E(t, tipTextReg.reg_wrong_smsCode_empty)2940 }2941 function L(t) {2942 var n = "phone",2943 r = QHPass.trim(QHPass.g(e.phone).value);2944 r ? /^1(3|5|7|8|4)\d{9}$/.test(r) ? t && QHPass.loadJsonp(QHDomain.login_http + "/index.php?op=checkmobile&mobile=" + encodeURIComponent(r) + "&r=" + Math.random(), A) : E(n, tipTextReg.reg_wrong_phone_format) : E(n, tipTextReg.reg_wrong_phone_empty)2945 }2946 function A(e) {2947 0 == e.errno ? S("phone", e.msg, e.errno) : e.errno == 1037 ? E("phone", e.msg + tipTextReg.immediately_login_tips, e.errno) : E("phone", e.msg, e.errno)2948 }2949 function O() {2950 var t = e.password,2951 n = "pwd",2952 r = QHPass.g(t).value,2953 i = _(r),2954 s = /[\u4e00-\u9fa5]+/,2955 o = /^\s*$/;2956 r && r.length >= 6 && r.length <= 20 ? s.test(r) ? E(n, tipTextReg.reg_wrong_password_chinese) : i < 3 ? r ? o.test(r) ? E(n, tipTextReg.reg_wrong_password_emptychars) : i == 0 ? E(n, tipTextReg.reg_wrong_password_same_chars) : i == 1 ? E(n, tipTextReg.reg_wrong_password_lx_chars) : i == 2 ? E(n, tipTextReg.reg_wrong_password_weaklevel) : E(n, tipTextReg.reg_wrong_password_weaklevel) : E(n, tipTextReg.reg_wrong_password_empty) : S(n, tipTextReg.reg_default_password) : E(n, tipTextReg.reg_wrong_default_password)2957 }2958 function M(e) {2959 var t = e.length,2960 n = e.slice(0),2961 r,2962 i;2963 while (--t > 0) {2964 i = n[t],2965 r = t;2966 while (r--) if (i === n[r]) {2967 n.splice(t, 1);2968 break2969 }2970 }2971 return n2972 }2973 function _(e) {2974 function u(e) {2975 e += "";2976 var t = e.length,2977 n = !0,2978 r = e.charCodeAt(t - 1) - e.charCodeAt(0) > 0 ? 1 : -1;2979 for (var i = 0; i < t - 1; i++) if (r !== e.charCodeAt(i + 1) - e.charCodeAt(i)) return n = !1,2980 n;2981 return n2982 }2983 e += "";2984 var t = e.length,2985 n = e.split(""),2986 r = M(n),2987 i = r.length,2988 s = -1;2989 cflag = u(e);2990 if (t < 6 || t > 20) s = -1;2991 else if (i == 1) s = 0;2992 else if (cflag) s = 1;2993 else if (w.join("#").indexOf(e) > -1) s = 2;2994 else {2995 var o = {2996 d: 0,2997 c: 0,2998 o: 02999 };3000 QHPass.forEach(r,3001 function(e, t) { / \d / .test(e) ? o.d = 1 : /[a-zA-Z]/.test(e) ? o.c = 1 : o.o = 13002 }),3003 s = o.d + o.c + o.o + (t > 9 ? 2 : 1),3004 s = s == 2 ? s + 1 : s3005 }3006 return s3007 }3008 function D() {3009 var t = e.phrase;3010 if (!t || !QHPass.g(t)) return;3011 if (!h) return;3012 var n = "phrase",3013 r = QHPass.trim(QHPass.g(t).value); (r.length < 0 || r.length > 7) && E(n, tipTextReg.reg_wrong_default_phrase)3014 }3015 function P(e) {3016 QHPass.getCaptchaUrl("reg", o, e)3017 }3018 function H() {3019 QHPass.g(e.phraseImg).src = u + "&_=" + Math.random()3020 }3021 function B() {3022 QHPass.forEach(t,3023 function(e) {3024 e == "360pay" || e == "yunpan" || e == "360" ? n.push("http://login." + e + ".cn") : e == "mall" ? n.push("http://login.360.com") : n.push("http://login." + e + ".com")3025 })3026 }3027 function j() {3028 a = 0,3029 QHPass.loadJs(n[a] + "/?o=sso&m=setcookie&func=QHPass.regUtils.rdCallBack&" + "s=" + i)3030 }3031 function F(e) {3032 e.errno == 0 ? (a += 1, a == n.length ? (clearTimeout(QHPass._timeoutHandler), QHPass.execCallback(s)) : QHPass.loadJs(n[a] + "/?o=sso&m=setcookie&func=QHPass.regUtils.rdCallBack&" + "s=" + i)) : (clearTimeout(QHPass._timeoutHandler), QHPass.execCallback(s))3033 }3034 function I(e) {3035 if (0 == e.res) S("username", e.msg, e.errno);3036 else {3037 var t = e.msg + tipTextReg.immediately_login_tips;3038 E("username", t, e.userinfo)3039 }3040 }3041 function R(e) {3042 if (f > 0) return;3043 q[e] && q[e](!1);3044 if (f > 0) return;3045 O();3046 if (f > 0) return;3047 D()3048 }3049 function U(t) {3050 f = 0,3051 L(!1);3052 if (f > 0) return;3053 var n = "smsCode",3054 r = QHPass.trim(QHPass.g(e.phone).value);3055 QHPass.loadJsonp(QHDomain.i360 + "/smsApi/sendsmscode?account=" + r + "&condition=2&r=" + Math.random(),3056 function(e) {3057 t && t(e),3058 e.errno == "0" ? S(n, e.errmsg, e.errno) : e.errno == 1106 ? E(n, "\u5e10\u53f7\u5df2\u5b58\u5728" + tipTextReg.immediately_login_tips, e.errno) : E(n, e.errmsg, e.errno)3059 })3060 }3061 function X() {3062 f = 0,3063 QHPass.trace("submit"),3064 R(r);3065 if (f > 0) return;3066 beforeFun && beforeFun(),3067 QHPass._timeoutHandler = setTimeout(function() {3068 E("network", "\u7f51\u7edc\u8d85\u65f6~"),3069 g && g()3070 },3071 2e4);3072 var t = {3073 account: QHPass.trim(QHPass.g(e[z[r]]).value),3074 acctype: W[r],3075 password: hex_md5(QHPass.g(e.password).value),3076 rePassword: hex_md5(QHPass.g(e.password).value),3077 captcha: e.phrase && QHPass.g(e.phrase) ? QHPass.g(e.phrase).value: "",3078 smscode: e.smsCode && QHPass.g(e.smsCode) ? QHPass.g(e.smsCode).value: "",3079 src: l,3080 is_agree: QHPass.g(e.isAgree).checked ? "1": "0",3081 charset: c,3082 loginEmailActiveFlag: "0",3083 captchaApp: o,3084 captchaFlag: h ? "1": "0",3085 proxy: "http://" + location.host + "/psp_jump.html",3086 callback: "parent.QHPass.regUtils.submitCB"3087 };3088 QHPass.CrossDomainRequest(QHDomain.i360 + "/reg/doregAccount", t),3089 y && y()3090 }3091 function V(e) {3092 var t = "";3093 e.errdetail && (t = JSON.parse(decodeURIComponent(e.errdetail)), u = t.captchaUrl),3094 b && b(),3095 e.errno == 0 ? (i = e.rd, j()) : e.errno == 78e3 ? (phraseFun && phraseFun(), E("phrase", tipTextReg.reg_wrong_phrase_input, e)) : e.errno == 78001 ? (phraseFun && phraseFun(), E("phrase", tipTextReg.reg_wrong_phrase_ban, e)) : e.errno == 1670 ? (h = !0, phraseFun && phraseFun(), E("phrase", decodeURIComponent(e.errmsg), e.errno)) : E("rd", decodeURIComponent(e.errmsg), e.errno)3096 }3097 function $(n, i) {3098 e = i.doms,3099 t = i.domainList || t,3100 r = i.regway,3101 s = n,3102 l = i.src,3103 o = i.captchaAppId || o,3104 c = i.postCharset,3105 p = i.extFun.error,3106 d = i.extFun.correct,3107 v = i.extFun.init,3108 beforeFun = i.extFun.before,3109 g = i.extFun.httpTimeout,3110 y = i.extFun.loading,3111 b = i.extFun.after,3112 phraseFun = i.extFun.phrase,3113 h = i.captFlag,3114 B(),3115 v && v(),3116 r != "phone" && P(function(e) {3117 u = e,3118 H()3119 })3120 }3121 var e = {},3122 t = ["so", "qihoo", "haosou", "yunpan", "leidian", "qikoo", "360kan", "qiku", "mall"],3123 n = [],3124 r = "",3125 i = "",3126 s = "",3127 o = "i360",3128 u = "",3129 a = 0,3130 f = 0,3131 l = "",3132 c = "",3133 h = !0,3134 p = null,3135 d = null,3136 v = null,3137 m = null,3138 g = null,3139 y = null,3140 b = null,3141 w = ["asdasd", "asdfgh", "asdfghjkl", "Iloveyou", "qwerty", "Password", "Passwd", "Woaini", "Wodemima", "Woaiwojia", "zxcvbn", "tamade", "nimade", "123abc", "0123456", "0123456789", "100200", "102030", "121212", "111222", "115415", "123000", "123123", "123789", "12301230", "123321", "123456", "1234560", "123465", "1234567", "12345678", "123456789", "1234567890", "123123123", "1314520", "1314521", "147258369", "147852369", "159357", "168168", "201314", "211314", "321321", "456456", "4655321", "521521", "5201314", "520520", "741852", "741852963", "7758258", "7758521", "654321", "852963", "987654", "963852741", "000000", "111111", "11111111", "112233", "666666", "888888", "abcdef", "abcabc", "abc123", "a1b2c3", "aaa111", "123qwe", "qweasd", "admin", "password", "p@ssword", "passwd", "iloveyou", "1qaz2wsx", "qwertyuiop", "qq123456", "1q2w3e4r", "123456abc", "abc123456", "qazwsxedc", "1q2w3e4r5t"];3142 QHPass._timeoutHandler = null;3143 var q = {3144 email: x,3145 username: C,3146 phone: function(e) {3147 L(e);3148 if (f > 0) return;3149 k()3150 }3151 },3152 z = {3153 email: "loginEmail",3154 username: "username",3155 phone: "phone"3156 },3157 W = {3158 email: "1",3159 username: "4",3160 phone: "2"3161 };3162 return {3163 run: $,3164 submit: X,3165 submitCB: V,3166 checkLoginEmail: x,3167 checkUsername: C,3168 checkPhone: L,3169 checkSmsCode: k,3170 loginEmailCallback: N,3171 checkUsernameCallback: I,3172 checkPhoneCallback: A,3173 getSmsCode: U,3174 showError: E,3175 showCorrect: S,3176 customError: p,3177 rdCallBack: F,3178 getCaptchaUrl: P,3179 setPhrase: H3180 }3181 } ();3182 globalConf = {3183 protocol: location.protocol.replace(":", ""),3184 src: "",3185 needHttpsDomains: ["haosou.com", "360pay.cn", "360.cn"]3186 },3187 QHPass.resConfig = {3188 reloadAfterLogout: !1,3189 jumpUrl: "",3190 isByqt: !0,3191 logoutCallback: null3192 },3193 QHPass.domainList = ["qihoo.com", "haosou.com", "yunpan.cn", "qikoo.com", "qiku.com", "360.com", "360pay.cn"],3194 QHPass.setConfig = function(e, t) {3195 globalConf[e] = t3196 },3197 QHPass.getConfig = function(e, t) {3198 return globalConf[e] === undefined ? t: globalConf[e]3199 },3200 QHPass.CrossDomainRequest = function(e, t, n, r) {3201 var i = +(new Date),3202 s = "",3203 o = QHPass.getConfig("protocol");3204 typeof n == "string" ? s = n: (s = "_CrossDomainCallback" + i, window[s] = function() {3205 var e = decodeURIComponent(arguments[0]);3206 return u.parentNode.removeChild(u),3207 n(e)3208 });3209 var u = document.createElement("div");3210 u.innerHTML = '<iframe style="display:none" id="_CrossDomainiframe' + i + '" name="' + "_CrossDomainiframe" + i + '" src=""></iframe>',3211 document.body.appendChild(u);3212 var a = document.createElement("FORM");3213 a.style.display = "none",3214 a.method = r || "post",3215 a.target = "_CrossDomainiframe" + i,3216 a.action = e;3217 var f = [];3218 f.push('<input type="hidden" name="callback" value="' + s + '" />'),3219 f.push('<input type="hidden" name="proxy" value="' + o + "://" + location.host + '/psp_jump.html" />'),3220 a.innerHTML = f.join("");3221 for (var l in t) {3222 var c = document.createElement("input");3223 c.setAttribute("type", "hidden"),3224 c.setAttribute("name", l),3225 c.setAttribute("value", t[l]),3226 a.appendChild(c)3227 }3228 document.body.appendChild(a),3229 a.submit(),3230 a.parentNode.removeChild(a)3231 };3232 var _currentDomain = location.hostname.replace(/^(?:.+\.)?(\w+\.\w+)$/, "$1");3233 QHPass.loadJs = function(e, t, n) {3234 n = n || {};3235 var r = document.getElementsByTagName("head")[0] || document.documentElement,3236 i = document.createElement("script"),3237 s = !1;3238 i.src = e,3239 n.charset && (i.charset = n.charset),3240 i.onerror = i.onload = i.onreadystatechange = function() { ! s && (!this.readyState || this.readyState == "loaded" || this.readyState == "complete") && (s = !0, t && t(), i.onerror = i.onload = i.onreadystatechange = null, r.removeChild(i))3241 },3242 r.insertBefore(i, r.firstChild)3243 },3244 QHPass.loadJsonp = function() {3245 var e = new Date * 1;3246 return function(t, n, r) {3247 r = r || {};3248 var i = "QiUserJsonP" + e++,3249 s = r.callbackReplacer || /%callback%/ig;3250 window[i] = function(e) {3251 n && n(e),3252 window[i] = null3253 },3254 s.test(t) ? t = t.replace(s, i) : t += (/\?/.test(t) ? "&": "?") + "callback=" + i,3255 QHPass.loadJs(t, null, r)3256 }3257 } (),3258 QHPass.g = function(e) {3259 return "string" == typeof e || e instanceof String ? document.getElementById(e) : e && e.nodeName && (e.nodeType == 1 || e.nodeType == 9) ? e: null3260 },3261 QHPass.trim = function(e) {3262 return e && e.replace(/^\s+|\s+$/g, "")3263 },3264 QHPass.forEach = function(e, t, n) {3265 for (var r = 0,3266 i = e.length; r < i; r++) r in e && t.call(n, e[r], r, e)3267 },3268 QHPass.byteLen = function(e) {3269 return e.replace(/[^\x00-\xff]/g, "--").length3270 },3271 QHPass.trace = function(e) {3272 window.console && window.console.log(e)3273 },3274 QHPass.execCallback = function(e, t) {3275 typeof e == "string" ? window.location.href = e: typeof e == "boolean" ? window.location.reload(e) : e && e(t)3276 },3277 QHPass.Cookie = QHPass.Cookie || {},3278 QHPass.Cookie.get = function(e) {3279 if (QHPass.Cookie._isValidKey(e)) {3280 var t = new RegExp("(^| )" + e + "=([^;]*)(;|$)"),3281 n = t.exec(document.cookie);3282 if (n) try {3283 return decodeURIComponent(n[2]) || null3284 } catch(r) {3285 return n[2] || null3286 }3287 }3288 return null3289 },3290 QHPass.Cookie._isValidKey = function(e) {3291 return (new RegExp('^[^\\x00-\\x20\\x7f\\(\\)<>@,;:\\\\\\"\\[\\]\\?=\\{\\}\\/\\u0080-\\uffff]+$')).test(e)3292 },3293 QHPass.Cookie.set = function(e, t, n) {3294 if (!QHPass.Cookie._isValidKey(e)) return;3295 n = n || {};3296 var r = n.expires;3297 "number" == typeof n.expires && (r = new Date, r.setTime(r.getTime() + n.expires)),3298 document.cookie = e + "=" + encodeURIComponent(t) + "; path=" + (n.path ? n.path: "/") + (r ? "; expires=" + r.toGMTString() : "") + (n.domain ? "; domain=" + n.domain: "") + (n.secure ? "; secure": "")3299 },3300 QHPass.Cookie.del = function(e) {3301 QHPass.Cookie.set(e, "")3302 },3303 QHPass.getAthenticateStatus = function(e, t) {3304 var n = QHPass.getConfig("currentDomain", _currentDomain),3305 r = QHPass.getConfig("protocol") == "https" ? "https": "http",3306 i = r + "://login." + n || (QHPass.getConfig("protocol") == "https" ? QHDomain.login_https: QHDomain.login_http);3307 QHPass.getUserInfo(function(n) {3308 var r = n.crumb,3309 s = i;3310 s += "?o=User&m=getShiMingStatus&crumb=" + r,3311 QHPass.loadJsonp(s,3312 function(n) {3313 n.details && !n.details.isNeedAuthen ? e && e(n.details.mobile) : t && t()3314 })3315 },3316 t)3317 },3318 //这个才是最终执行的!3319 QHPass.getUserInfo = function(e, t, n) {3320 var r = QHPass.getConfig("currentDomain", _currentDomain),3321 i = QHPass.getConfig("protocol") == "https" ? "https": "http",3322 s = i + "://login." + r;3323 if (QHPass.Cookie.get("Q") || !QHPass.resConfig.isByqt) {3324 var o = n || s || QHDomain.login_http;3325 o += "/?o=sso&m=info&func=%callback%&show_name_flag=2213",3326 QHPass.loadJsonp(o,3327 function(n) {3328 n.qid ? e && e(n) : t && t()3329 })3330 } else t && t()3331 },3332 QHPass.getRd = function(e, t) {3333 var n = QHPass.getConfig("protocol") == "https" ? QHDomain.login_https: QHDomain.login_http,3334 r = n + "?o=sso&m=getRd";3335 QHPass.loadJsonp(r,3336 function(n) {3337 n.rd ? e && e(n.rd) : t && t(n)3338 })3339 },3340 QHPass.logoutOtherDomain = function(e) {3341 function i() {3342 QHPass.resConfig.logoutCallback ? QHPass.execCallback(QHPass.resConfig.logoutCallback) : location.reload(!0)3343 }3344 var t = QHPass.getConfig("currentDomain", _currentDomain),3345 n = QHPass.getConfig("protocol") == "https" ? "https": "http",3346 r = n + "://login." + t;3347 e.errno == 0 && (t && t !== "360.cn" ? QHPass.loadJsonp(r + "/?o=sso&m=logout&func=%callback%", i) : i())3348 },3349 QHPass.logout = function(e) {3350 e && (QHPass.resConfig.logoutCallback = e);3351 var t = QHPass.getConfig("protocol") == "https" ? QHDomain.login_https: QHDomain.login_http;3352 if (QHPass.Cookie.get("Q") || !QHPass.resConfig.isByqt) if (QHPass.resConfig.reloadAfterLogout) {3353 var n = QHPass.resConfig.jumpUrl || location.href;3354 location.href = t + "/?op=logout&destUrl=" + encodeURIComponent(n)3355 } else QHPass.loadJsonp(t + "/?o=sso&m=logout&func=%callback%", QHPass.logoutOtherDomain);3356 else e && QHPass.execCallback(e)3357 },3358 QHPass.cookieEnabled = function() {3359 var e = !0,3360 t = document.cookie.length,3361 n = Math.random(),3362 r = ["test", n, "test=test", ";expires=Thu, 01 Jan 9970 00:00:00 GMT", ";path=/"].join("");3363 return document.cookie = r,3364 document.cookie.length == t && (e = !1),3365 r = ["test", n, "test=test", ";expires=Thu, 01 Jan 1970 00:00:00 GMT", ";path=/"].join(""),3366 document.cookie = r,3367 e3368 },3369 QHPass.getCaptchaUrl = function(e, t, n) {3370 var r = QHPass.getConfig("protocol"),3371 i = QHDomain.i360 + "/QuCapt/getQuCaptUrl?captchaApp=" + t + "&captchaScene=" + e + "&requestScema=" + r;3372 QHPass.loadJsonp(i,3373 function(e) {3374 e.errno == "0" && n && QHPass.execCallback(n, e.captchaUrl)3375 })3376 };3377 QHPass.mShowLogin = function(e, t) {3378 t = t || {},3379 QHPass.loginUtils.run(e, t)3380 },3381 QHPass.loginUtils = function() {3382 function S(t, n, r) {3383 QHPass.trace(t),3384 h += 1;3385 var i = QHPass.g(e.globalTips);3386 i && (i.innerHTML = n, i.style.display = "block"),3387 d && d({3388 type: t,3389 msg: n,3390 extra: r3391 }),3392 clearTimeout(QHPass._timeoutHandler)3393 }3394 function x(t, n, r) {3395 var i = QHPass.g(e.globalTips);3396 i && (i.innerHTML = n, i.style.display = "none"),3397 v && v({3398 type: t,3399 msg: n,3400 extra: r3401 })3402 }3403 function T() {3404 var t = e.account,3405 n = "account",3406 r = QHPass.byteLen(QHPass.g(t).value);3407 r || S(n, tipTextLogin.login_account_empty)3408 }3409 function N() {3410 var t = e.password,3411 n = "pwd",3412 r = QHPass.trim(QHPass.g(t).value);3413 r ? r && r.length < 6 && S(n, tipTextLogin.login_default_wrong) : S(n, tipTextLogin.login_password_empty)3414 }3415 function C() {3416 var t = e.phrase,3417 n = "phrase",3418 r = QHPass.trim(QHPass.g(t).value); (r.length <= 0 || r.length > 7) && S(n, tipTextLogin.login_phrase_wrong)3419 }3420 function k() {3421 var e = QHPass.getConfig("needHttpsDomains");3422 QHPass.forEach(t,3423 function(t) {3424 e.indexOf(t) > -1 ? n.push("https://login." + t) : n.push("http://login." + t)3425 })3426 }3427 function L() {3428 h = 0;3429 if (h != 0) return;3430 T();3431 if (h != 0) return;3432 N();3433 if (u) {3434 if (h != 0) return;3435 C()3436 }3437 if (h > 0) return;3438 beforeFun && beforeFun(),3439 QHPass._timeoutHandler = setTimeout(function() {3440 QHDomain.login_https = "http://login.360.cn",3441 A(),3442 y && y(),3443 QHPass._timeoutHandler = setTimeout(function() {3444 b && b(),3445 S("network", "\u7f51\u7edc\u8d85\u65f6~")3446 },3447 1e4)3448 },3449 1e4),3450 A()3451 }3452 function A() {3453 var t = QHDomain.login_https + "/?o=sso&m=getToken",3454 n = QHPass.trim(QHPass.g(e.account).value),3455 r = t + "&func=QHPass.loginUtils.tokenCallback&" + "userName=" + encodeURIComponent(n) + "&rand=" + Math.random();3456 QHPass.loadJsonp(r)3457 }3458 function O(t) {3459 var n = QHPass.trim(QHPass.g(e.account).value),3460 r = QHPass.g(e.password).value,3461 i = QHPass.g(e.isAutologin).checked ? 1 : 0,3462 s = QHPass.g(e.phrase).value;3463 t.errno != 0 ? S("token", decodeURIComponent(t.errmsg), t.errno) : M(n, r, i, t.token, s)3464 }3465 function M(e, t, n, r, i) {3466 var s = [],3467 u = QHPass.getConfig("protocol");3468 s.push("userName=" + encodeURIComponent(e)),3469 s.push("pwdmethod=1"),3470 s.push("password=" + hex_md5(t)),3471 s.push("isKeepAlive=" + n),3472 s.push("token=" + r),3473 o ? (s.push("captFlag=1"), s.push("captchaApp=" + a), s.push("captcha=" + encodeURIComponent(i))) : s.push("captFlag="),3474 s.push("r=" + (new Date).getTime()),3475 w && w();3476 var f = QHDomain.login_https + "/?o=sso&m=login&from=" + p + "&rtype=data&func=QHPass.loginUtils.loginCallback&requestScema=" + u;3477 QHPass.loadJsonp(f + "&" + s.join("&"))3478 }3479 function _(e) {3480 QHPass.getCaptchaUrl("login", a, e)3481 }3482 function D() {3483 QHPass.g(e.phraseImg).src = f + "&_=" + Math.random()3484 }3485 function P(t) {3486 E && E();3487 if (t.errno == 0) i = t.s,3488 r = t.userinfo,3489 H();3490 else switch (t.errno) {3491 case 1036:3492 S("account", tipTextLogin.login_default_wrong, t.errno);3493 break;3494 case 221:3495 var n = decodeURIComponent(t.errmsg) + tipTextLogin.contact_kefu;3496 S("account", n, t.errno);3497 break;3498 case 219:3499 case 220:3500 S("pwd", tipTextLogin.login_default_wrong, t.errno);3501 break;3502 case 2e4:3503 S("account", decodeURIComponent(t.errmsg), t.errno);3504 break;3505 case 78e3:3506 case 78002:3507 u = !0,3508 f = t.errdetail.captchaUrl,3509 QHPass.g(e.phraseWrapper).style.display = "block",3510 l && l(),3511 S("phrase", decodeURIComponent(t.errmsg), t);3512 break;3513 default:3514 S("rd", decodeURIComponent(t.errmsg), t.errno)3515 }3516 }3517 function H() {3518 c = 0,3519 QHPass.loadJs(n[c] + "/?o=sso&m=setcookie&func=QHPass.loginUtils.rdCallBack&" + "s=" + i)3520 }3521 function B(e) {3522 e.errno == 0 ? (c += 1, c == n.length ? (clearTimeout(QHPass._timeoutHandler), QHPass.execCallback(s, r)) : QHPass.loadJs(n[c] + "/?o=sso&m=setcookie&func=QHPass.loginUtils.rdCallBack&" + "s=" + i)) : (clearTimeout(QHPass._timeoutHandler), QHPass.execCallback(s, r))3523 }3524 function j(n, r) {3525 e = r.doms,3526 t = r.domainList || QHPass.getConfig("domainList", t),3527 s = n,3528 p = r.src || QHPass.getConfig("src"),3529 a = r.captchaAppId || a,3530 l = r.extFun.phrase,3531 d = r.extFun.error,3532 v = r.extFun.correct,3533 phraseTime = r.phraseTime || "start",3534 m = r.extFun.init,3535 y = r.extFun.httpsTimeout,3536 b = r.extFun.httpTimeout,3537 beforeFun = r.extFun.before,3538 w = r.extFun.loading,3539 E = r.extFun.after,3540 phraseTime == "start" ? u = !0 : u = !1,3541 k(),3542 QHPass.g(e.account).onblur = function() {3543 var t = QHPass.trim(this.value),3544 n = QHPass.getConfig("protocol", "https"),3545 r = QHPass.getConfig("currentDomain", _currentDomain),3546 i = n + "://login." + r || (n == "https" ? QHDomain.login_https: QHDomain.login_http),3547 s = i + "/?&src=" + p + "&from=" + p + "&charset=UTF-8&requestScema=http&o=sso&m=checkNeedCaptcha&account=" + t + "&captchaApp=i360&requestScema=" + n;3548 if (!t) return;3549 QHPass.loadJsonp(s,3550 function(t) {3551 t.errno == 0 && (f = t.captchaUrl, D(), t.captchaFlag ? (QHPass.g(e.phraseWrapper).style.display = "block", u = !0) : (QHPass.g(e.phraseWrapper).style.display = "none", u = !1))3552 })3553 },3554 m && m()3555 }3556 var e = {},3557 t = QHPass.domainList,3558 n = [],3559 r = null,3560 i = "",3561 s = "",3562 o = !0,3563 u = !1,3564 a = "i360",3565 f = "",3566 l = null,3567 c = 0,3568 h = 0,3569 p = "",3570 d = null,3571 v = null,3572 m = null,3573 g = null,3574 y = null,3575 b = null,3576 w = null,3577 E = null;3578 return QHPass._timeoutHandler = null,3579 {3580 run: j,3581 submit: L,3582 showError: S,3583 showCorrect: x,3584 tokenCallback: O,3585 loginCallback: P,3586 rdCallBack: B,3587 getCaptchaUrl: _,3588 setPhrase: D3589 }3590 } ();3591 QHPass.mShowReg = function(e, t) {3592 t = t || {},3593 QHPass.regUtils.run(e, t)3594 },3595 QHPass.regUtils = function() {3596 function E(t, n, r) {3597 QHPass.trace(t),3598 f++;3599 var i = QHPass.g(e.globalTips);3600 i && (i.innerHTML = n, i.style.display = "block"),3601 p && p({3602 type: t,3603 msg: n,3604 extra: r3605 }),3606 clearTimeout(QHPass._timeoutHandler)3607 }3608 function S(t, n, r) {3609 var i = QHPass.g(e.globalTips);3610 i && (i.innerHTML = n, i.style.display = "none"),3611 d && d({3612 type: t,3613 msg: n,3614 extra: r3615 })3616 }3617 function x(t) {3618 var n = QHPass.getConfig("protocol") == "https" ? QHDomain.login_https: QHDomain.login_http,3619 r = e.loginEmail,3620 i = "loginEmail",3621 s = QHPass.trim(QHPass.g(r).value),3622 o = n + "/index.php?op=checkemail&loginEmail=" + s + "&r=" + Math.random();3623 s ? T(s) ? t && QHPass.loadJsonp(o, N) : E(i, tipTextReg.reg_wrong_loginEmail_format) : E(i, tipTextReg.reg_wrong_loginEmail_empty)3624 }3625 function T(e) {3626 if (e.length > 100) return ! 1;3627 if (!/^([\w\-\.]+)@(([0-9a-zA-Z\-]+\.)+[a-zA-Z]{2,4})$/i.test(e)) return ! 1;3628 var t = e.split("@"),3629 n = t[1];3630 if (n == "163.com" || n == "126.com" || n == "yeah.net") if (!/^([a-zA-Z][\w]{5,17}|1(3|5|7|8|4)\d{9})$/.test(t[0])) return ! 1;3631 return ! 03632 }3633 function N(e) {3634 if (0 == e.res) S("loginEmail", e.msg, e.errno);3635 else if (e.errno == 2e4) E("loginEmail", e.msg, e.errno);3636 else if (1 == e.res) {3637 var t = e.msg + tipTextReg.immediately_login_tips;3638 E("loginEmail", t, e.errno)3639 } else E("loginEmail", e.msg, e.errno)3640 }3641 function C(t) {3642 var n = QHPass.getConfig("protocol") == "https" ? QHDomain.login_https: QHDomain.login_http,3643 r = e.username,3644 i = "username",3645 s = QHPass.trim(QHPass.g(r).value),3646 o = QHPass.byteLen(s),3647 u = /^[0-9a-zA-Z\u4e00-\u9fa5_\.]*$/i,3648 a = n + "/index.php?op=checkuser&userName=" + encodeURIComponent(s) + "&r=" + Math.random();3649 s ? 0 == u.test(s) ? E(i, tipTextReg.reg_wrong_username_chars) : o < 2 ? E(i, tipTextReg.reg_wrong_username_short) : o > 14 ? E(i, tipTextReg.reg_wrong_username_long) : t && QHPass.loadJsonp(a, I) : E(i, tipTextReg.reg_wrong_username_empty)3650 }3651 function k() {3652 var t = "smsCode",3653 n = QHPass.trim(QHPass.g(e.smsCode).value);3654 n ? /^\d{6}$/.test(n) || E(t, tipTextReg.reg_wrong_format_smsCode) : E(t, tipTextReg.reg_wrong_smsCode_empty)3655 }3656 function L(t) {3657 var n = QHPass.getConfig("protocol") == "https" ? QHDomain.login_https: QHDomain.login_http,3658 r = "phone",3659 i = QHPass.trim(QHPass.g(e.phone).value);3660 i ? /^1(3|4|5|7|8)\d{9}$/.test(i) ? t && QHPass.loadJsonp(n + "/index.php?op=checkmobile&mobile=" + encodeURIComponent(i) + "&r=" + Math.random(), A) : E(r, tipTextReg.reg_wrong_phone_format) : E(r, tipTextReg.reg_wrong_phone_empty)3661 }3662 function A(e) {3663 0 == e.errno ? S("phone", e.msg, e.errno) : e.errno == 1037 ? E("phone", e.msg + tipTextReg.immediately_login_tips, e.errno) : E("phone", e.msg, e.errno)3664 }3665 function O() {3666 var t = e.password,3667 n = "pwd",3668 r = QHPass.g(t).value,3669 i = _(r),3670 s = /[\u4e00-\u9fa5]+/,3671 o = /^\s*$/;3672 r && r.length >= 6 && r.length <= 20 ? s.test(r) ? E(n, tipTextReg.reg_wrong_password_chinese) : i < 3 ? r ? o.test(r) ? E(n, tipTextReg.reg_wrong_password_emptychars) : i == 0 ? E(n, tipTextReg.reg_wrong_password_same_chars) : i == 1 ? E(n, tipTextReg.reg_wrong_password_lx_chars) : i == 2 ? E(n, tipTextReg.reg_wrong_password_weaklevel) : E(n, tipTextReg.reg_wrong_password_weaklevel) : E(n, tipTextReg.reg_wrong_password_empty) : S(n, tipTextReg.reg_default_password) : E(n, tipTextReg.reg_wrong_default_password)3673 }3674 function M(e) {3675 var t = e.length,3676 n = e.slice(0),3677 r,3678 i;3679 while (--t > 0) {3680 i = n[t],3681 r = t;3682 while (r--) if (i === n[r]) {3683 n.splice(t, 1);3684 break3685 }3686 }3687 return n3688 }3689 function _(e) {3690 function u(e) {3691 e += "";3692 var t = e.length,3693 n = !0,3694 r = e.charCodeAt(t - 1) - e.charCodeAt(0) > 0 ? 1 : -1;3695 for (var i = 0; i < t - 1; i++) if (r !== e.charCodeAt(i + 1) - e.charCodeAt(i)) return n = !1,3696 n;3697 return n3698 }3699 e += "";3700 var t = e.length,3701 n = e.split(""),3702 r = M(n),3703 i = r.length,3704 s = -1;3705 cflag = u(e);3706 if (t < 6 || t > 20) s = -1;3707 else if (i == 1) s = 0;3708 else if (cflag) s = 1;3709 else if (w.join("#").indexOf(e) > -1) s = 2;3710 else {3711 var o = {3712 d: 0,3713 c: 0,3714 o: 03715 };3716 QHPass.forEach(r,3717 function(e, t) { / \d / .test(e) ? o.d = 1 : /[a-zA-Z]/.test(e) ? o.c = 1 : o.o = 13718 }),3719 s = o.d + o.c + o.o + (t > 9 ? 2 : 1),3720 s = s == 2 ? s + 1 : s3721 }3722 return s3723 }3724 function D() {3725 var t = e.phrase;3726 if (!t || !QHPass.g(t)) return;3727 if (!h) return;3728 var n = "phrase",3729 r = QHPass.trim(QHPass.g(t).value); (r.length < 0 || r.length > 7) && E(n, tipTextReg.reg_wrong_default_phrase)3730 }3731 function P(e) {3732 QHPass.getCaptchaUrl("reg", o, e)3733 }3734 function H() {3735 QHPass.g(e.phraseImg).src = u + "&_=" + Math.random()3736 }3737 function B() {3738 var e = QHPass.getConfig("needHttpsDomains");3739 QHPass.forEach(t,3740 function(t) {3741 e.indexOf(t) > -1 ? n.push("https://login." + t) : n.push("http://login." + t)3742 })3743 }3744 function j() {3745 a = 0,3746 QHPass.loadJs(n[a] + "/?o=sso&m=setcookie&func=QHPass.regUtils.rdCallBack&" + "s=" + i)3747 }3748 function F(e) {3749 e.errno == 0 ? (a += 1, a == n.length ? (clearTimeout(QHPass._timeoutHandler), QHPass.execCallback(s)) : QHPass.loadJs(n[a] + "/?o=sso&m=setcookie&func=QHPass.regUtils.rdCallBack&" + "s=" + i)) : (clearTimeout(QHPass._timeoutHandler), QHPass.execCallback(s))3750 }3751 function I(e) {3752 if (0 == e.res) S("username", e.msg, e.errno);3753 else {3754 var t = e.msg + tipTextReg.immediately_login_tips;3755 E("username", t, e.userinfo)3756 }3757 }3758 function R(e) {3759 if (f > 0) return;3760 q[e] && q[e](!1);3761 if (f > 0) return;3762 O();3763 if (f > 0) return;3764 D()3765 }3766 function U(t) {3767 f = 0,3768 L(!1);3769 if (f > 0) return;3770 var n = "smsCode",3771 r = QHPass.trim(QHPass.g(e.phone).value);3772 QHPass.loadJsonp(QHDomain.i360 + "/smsApi/sendsmscode?account=" + r + "&condition=2&r=" + Math.random(),3773 function(e) {3774 t && t(e),3775 e.errno == "0" ? S(n, e.errmsg, e.errno) : e.errno == 1106 ? E(n, "\u5e10\u53f7\u5df2\u5b58\u5728" + tipTextReg.immediately_login_tips, e.errno) : E(n, e.errmsg, e.errno)3776 })3777 }3778 function X() {3779 var t = QHPass.getConfig("protocol", "https");3780 f = 0,3781 QHPass.trace("submit"),3782 R(r);3783 if (f > 0) return;3784 beforeFun && beforeFun(),3785 QHPass._timeoutHandler = setTimeout(function() {3786 E("network", "\u7f51\u7edc\u8d85\u65f6~"),3787 g && g()3788 },3789 2e4);3790 var n = {3791 account: QHPass.trim(QHPass.g(e[z[r]]).value),3792 acctype: W[r],3793 password: hex_md5(QHPass.g(e.password).value),3794 rePassword: hex_md5(QHPass.g(e.password).value),3795 captcha: e.phrase && QHPass.g(e.phrase) ? QHPass.g(e.phrase).value: "",3796 smscode: e.smsCode && QHPass.g(e.smsCode) ? QHPass.g(e.smsCode).value: "",3797 src: l,3798 is_agree: QHPass.g(e.isAgree).checked ? "1": "0",3799 charset: c,3800 loginEmailActiveFlag: "0",3801 captchaApp: o,3802 captchaFlag: h ? "1": "0",3803 proxy: t + "://" + location.host + "/psp_jump.html",3804 callback: "parent.QHPass.regUtils.submitCB",3805 requestScema: t3806 };3807 QHPass.CrossDomainRequest(QHDomain.i360 + "/reg/doregAccount", n),3808 y && y()3809 }3810 function V(t) {3811 var n = "";3812 t.errdetail && (n = JSON.parse(decodeURIComponent(t.errdetail)), u = n.captchaUrl),3813 b && b(),3814 t.errno == 0 ? (i = t.rd, j()) : t.errno == 78e3 ? (phraseFun && phraseFun(), QHPass.g(e.phraseWrapper).style.display = "block", E("phrase", tipTextReg.reg_wrong_phrase_input, t)) : t.errno == 78001 ? (phraseFun && phraseFun(), QHPass.g(e.phraseWrapper).style.display = "block", E("phrase", tipTextReg.reg_wrong_phrase_ban, t)) : t.errno == 1670 ? (h = !0, phraseFun && phraseFun(), E("phrase", decodeURIComponent(t.errmsg), t.errno)) : E("rd", decodeURIComponent(t.errmsg), t.errno)3815 }3816 function $(n, i) {3817 e = i.doms,3818 t = i.domainList || QHPass.getConfig("domainList", t),3819 r = i.regway,3820 s = n,3821 l = i.src || QHPass.getConfig("src"),3822 o = i.captchaAppId || o,3823 c = i.postCharset || document.charset,3824 p = i.extFun.error,3825 d = i.extFun.correct,3826 v = i.extFun.init,3827 beforeFun = i.extFun.before,3828 g = i.extFun.httpTimeout,3829 y = i.extFun.loading,3830 b = i.extFun.after,3831 phraseFun = i.extFun.phrase,3832 h = i.captFlag,3833 B(),3834 v && v(),3835 r != "phone" && P(function(e) {3836 u = e,3837 H()3838 })3839 }3840 var e = {},3841 t = QHPass.domainList,3842 n = [],3843 r = "",3844 i = "",3845 s = "",3846 o = "i360",3847 u = "",3848 a = 0,3849 f = 0,3850 l = "",3851 c = "",3852 h = !0,3853 p = null,3854 d = null,3855 v = null,3856 m = null,3857 g = null,3858 y = null,3859 b = null,3860 w = ["asdasd", "asdfgh", "asdfghjkl", "Iloveyou", "qwerty", "Password", "Passwd", "Woaini", "Wodemima", "Woaiwojia", "zxcvbn", "tamade", "nimade", "123abc", "0123456", "0123456789", "100200", "102030", "121212", "111222", "115415", "123000", "123123", "123789", "12301230", "123321", "123456", "1234560", "123465", "1234567", "12345678", "123456789", "1234567890", "123123123", "1314520", "1314521", "147258369", "147852369", "159357", "168168", "201314", "211314", "321321", "456456", "4655321", "521521", "5201314", "520520", "741852", "741852963", "7758258", "7758521", "654321", "852963", "987654", "963852741", "000000", "111111", "11111111", "112233", "666666", "888888", "abcdef", "abcabc", "abc123", "a1b2c3", "aaa111", "123qwe", "qweasd", "admin", "password", "p@ssword", "passwd", "iloveyou", "1qaz2wsx", "qwertyuiop", "qq123456", "1q2w3e4r", "123456abc", "abc123456", "qazwsxedc", "1q2w3e4r5t"];3861 QHPass._timeoutHandler = null;3862 var q = {3863 email: x,3864 username: C,3865 phone: function(e) {3866 L(e);3867 if (f > 0) return;3868 k()3869 }3870 },3871 z = {3872 email: "loginEmail",3873 username: "username",3874 phone: "phone"3875 },3876 W = {3877 email: "1",3878 username: "4",3879 phone: "2"3880 };3881 return {3882 run: $,3883 submit: X,3884 submitCB: V,3885 checkLoginEmail: x,3886 checkUsername: C,3887 checkPhone: L,3888 checkSmsCode: k,3889 loginEmailCallback: N,3890 checkUsernameCallback: I,3891 checkPhoneCallback: A,3892 getSmsCode: U,3893 showError: E,3894 showCorrect: S,3895 customError: p,3896 rdCallBack: F,3897 getCaptchaUrl: P,3898 setPhrase: H3899 }3900 } ();3901 var tipTextSetname = {3902 username_short: "\u7528\u6237\u540d\u6700\u5c11\u4f7f\u75282\u4e2a\u5b57\u7b26\u6216\u6c49\u5b57",3903 username_long: "\u7528\u6237\u540d\u4e0d\u8d85\u8fc77\u4e2a\u6c49\u5b57\u621614\u4e2a\u5b57\u7b26",3904 username_chars: "\u7528\u6237\u540d\u4e0d\u80fd\u5305\u542b\u7279\u6b8a\u5b57\u7b26",3905 username_empty: "\u8bf7\u8f93\u5165\u6709\u6548\u7684\u7528\u6237\u540d"3906 };3907 QHPass.mShowSetname = function(e, t) {3908 t = t || {},3909 QHPass.setnameUtils.run(e, t)3910 },3911 QHPass.setnameUtils = function() {3912 function d(t, n, r) {3913 QHPass.trace(t),3914 o++;3915 var s = QHPass.g(e.globalTips);3916 s && (s.innerHTML = n, s.style.display = "block"),3917 i && i({3918 type: t,3919 msg: n,3920 extra: r3921 }),3922 clearTimeout(QHPass._timeoutHandler)3923 }3924 function v(t, n, r) {3925 var i = QHPass.g(e.globalTips);3926 i && (i.innerHTML = n, i.style.display = "none"),3927 s && s({3928 type: t,3929 msg: n,3930 extra: r3931 })3932 }3933 function m(t) {3934 var n = QHPass.getConfig("protocol") == "https" ? QHDomain.login_https: QHDomain.login_http,3935 r = e.username,3936 i = "username",3937 s = QHPass.trim(QHPass.g(r).value),3938 o = QHPass.byteLen(s),3939 u = /^[0-9a-zA-Z\u4e00-\u9fa5_\.]*$/i,3940 a = n + "/?op=checkuser&userName=" + encodeURIComponent(s) + "&r=" + Math.random();3941 s ? 0 == u.test(s) ? d(i, tipTextSetname.username_chars) : o < 2 ? d(i, tipTextSetname.username_short) : o > 14 ? d(i, tipTextSetname.username_long) : t && QHPass.loadJsonp(a,3942 function(e) {3943 var t = decodeURIComponent(e.msg);3944 0 == e.res ? (h && h(e), v("username", t, e.errno)) : d("username", t, {3945 errno: e.errno,3946 userInfo: e.userinfo3947 })3948 }) : d(i, tipTextSetname.username_empty)3949 }3950 function g() {3951 var t = QHPass.getConfig("protocol", "https"),3952 i = t == "https" ? QHDomain.login_https: QHDomain.login_http;3953 o = 0,3954 m(!1);3955 if (o > 0) return;3956 beforeFun && beforeFun(),3957 QHPass._timeoutHandler = setTimeout(function() {3958 l && l(),3959 d("network", "\u7f51\u7edc\u8d85\u65f6~")3960 },3961 2e4);3962 var s = {3963 userName: QHPass.trim(QHPass.g(e.username).value),3964 o: "User",3965 m: "modifyUserName",3966 from: n,3967 crumb: u && u.crumb || "",3968 charset: r,3969 proxy: t + "://" + location.host + "/psp_jump.html",3970 callback: "parent.QHPass.setnameUtils.setnameCallback",3971 requestScema: t3972 };3973 QHPass.CrossDomainRequest(i, s)3974 }3975 function y(e) {3976 p && p();3977 if (e.errno == 0) clearTimeout(QHPass._timeoutHandler),3978 QHPass.execCallback(t);3979 else {3980 var n = decodeURIComponent(e.errmsg);3981 d("username", n, e.errno)3982 }3983 }3984 function b(o, f) {3985 e = f.doms,3986 t = o,3987 n = f.src,3988 r = f.postCharset,3989 h = f.extFun.checkNameSucess,3990 i = f.extFun.error,3991 s = f.extFun.correct,3992 a = f.extFun.init,3993 l = f.extFun.httpTimeout,3994 beforeFun = f.extFun.before,3995 c = f.extFun.loading,3996 p = f.extFun.after,3997 a && a(),3998 QHPass.getUserInfo(function(e) {3999 u = e4000 })4001 }4002 var e = {},4003 t = null,4004 n = "",4005 r = "",4006 i = null,4007 s = null,4008 o = 0,4009 u = null,4010 a = null,4011 f = null,4012 l = null,4013 c = null,4014 h = null,4015 p = null;4016 return QHPass._timeoutHandler = null,4017 {4018 run: b,4019 submit: g,4020 checkUsername: m,4021 showError: d,4022 showCorrect: v,4023 setnameCallback: y4024 }4025 } ();4026 var errTimeout;4027 //接口文档4028 window.QHDomain = {4029 'i360':'http://i.360.cn',4030 'login_http':'http://login.360.cn',4031 'login_https':'https://login.360.cn',4032 'js_login':'http://js.login.360.cn',4033 '1360':'http://www.1360.com',4034 'qihoo':'http://www.qihoo.com',4035 'so':'http://www.so.com',4036 'woxihuan':'http://www.woxihuan.com',4037 'yunpan':'http://yunpan.360.cn',4038 'help':'http://help.360.cn',4039 'baike':'http://baike.360.cn',4040 'rdLoginUrl':{4041 "qihoo":"http:\/\/login.qihoo.com",4042 "woxihuan":"http:\/\/login.woxihuan.com",4043 "1360":"http:\/\/login.1360.com",4044 "so":"http:\/\/login.so.com",4045 "360pay":"http:\/\/login.360pay.cn",4046 "leidian":"http:\/\/login.leidian.com",4047 "qikoo":"http:\/\/login.qikoo.com"4048 },4049 'captcha':'http://i.360.cn/reg/dogetcap?i360',4050 'jifen':'http://jifen.360.cn',4051 'src':'pcw_i360',4052 'srcRoot': 'i360'4053 };4054 window.QHUserInfo = {4055 'loginStatus' : '',/*****1为登录,0为未登录*******/4056 'figure' : '',4057 'qid' : '',4058 'userName' : '',4059 'nickName' : '',4060 'loginEmail' : ''4061 };4062 //baoyuanhui4063 //周期函数4064 var loginUsernameInterval, loginPasswordInterval, loginPhraseInterval,4065 registerUsernameInterval, registerPasswordInterval, registerSmsInterval;4066 //业务src4067 var src = "pcw_i360";4068 window.qCrumb = "";4069 var domainList = '';4070 var destUrl = "";4071 var destDomain = '';4072 monitor.setProject('360passportwap').getTrack().getClickAndKeydown();4073 QHPass.setConfig('src', 'pcw_i360');4074 window.QHPass = QHPass;4075 //注册接口4076 function initMobileReg(e, t, n, r, c) {4077 var i, s = detector.device.name,4078 o = detector.browser.name,4079 u = s == "mac" || s == "iphone" || s == "ipad" || o == "safari",4080 a = "";4081 n || (n = "so.com,qihoo.com,haosou.com,yunpan.cn,leidian.com,qikoo.com,360kan.com,qiku.com,360.com"),4082 u ? a = ["360"] : a = "",4083 QHPass.mShowReg(function() {4084 if(c && typeof c === 'function'){4085 c();4086 }4087 hide();4088 //显示注册成功4089 $("#qt_global_text").html("注册成功"),4090 $("#qt_global_text").css("top", "45%"),4091 i && clearTimeout(i),4092 i = setTimeout(function() {4093 $("#qt_global_text").css("top", "-40%");4094 },2e3);4095 },4096 {4097 doms: {4098 globalTips: "qt_global_text",4099 smsCode: "qt_smscode",4100 phone: "qt_phone",4101 password: "qt_mobile_password",4102 isAgree: "qt_mobile_agree"4103 },4104 extFun: {4105 init: function() {4106 $("#qt_phone").blur(function() {4107 QHPass.regUtils.checkPhone(!0)4108 }),4109 $("#qt_mobile_reg").click(function() {4110 var e = $(this).hasClass("clicked");4111 if (e) return;4112 $(this).addClass("clicked").val("\u63d0\u4ea4\u4e2d..."),4113 QHPass.regUtils.submit()4114 }),4115 $("#qt_mobile_password").on("keyup",4116 function(e) {4117 var t = e.keyCode;4118 t == 13 && $("#qt_mobile_reg").trigger("click")4119 }),4120 $(".get-sms-token").on("click",4121 function() {4122 var e = $(this),4123 t = "disabled";4124 if (e.hasClass(t)) return;4125 QHPass.regUtils.getSmsCode(function(n) {4126 if (n.errno == 0) {4127 e.addClass(t);4128 var r = 120,4129 i = null;4130 i = setInterval(function() {4131 e.text(r + "\u79d2\u540e\u91cd\u53d1"),4132 r--,4133 r < 1 && (clearInterval(i), e.text("\u83b7\u53d6\u6821\u9a8c\u7801").removeClass(t))4134 },4135 1e3)4136 }4137 })4138 }),4139 $(".reg-email").on("click",4140 function(i) {4141 i.preventDefault(),4142 $(".mobile-reg-wrapper").hide(),4143 $(".email-reg-wrapper").show();4144 }),4145 $("body").delegate(".clk-quc-login", "click",4146 function(e) {4147 e.preventDefault(),4148 $(".btn-login").trigger("click")4149 })4150 },4151 error: function() {4152 $("#qt_global_text").css("top", "45%"),4153 i && clearTimeout(i),4154 i = setTimeout(function() {4155 $("#qt_global_text").css("top", "-40%")4156 },4157 2e3),4158 $("#qt_mobile_reg").removeClass("clicked").val("快速登录");4159 },4160 correct: function() {4161 $("#qt_global_text").css("top", "-40%")4162 },4163 before: function() {},4164 loading: function() {},4165 after: function() {}4166 },4167 regway: "phone",4168 domainList: a,4169 src: e4170 })4171 }4172 //登录接口4173 function initLogin(callback) {4174 QHPass.mShowLogin(function(){4175 if(callback && typeof callback === 'function'){4176 callback();4177 }4178 //隐藏登录框4179 hide();4180 //显示登录成功4181 $("#qt_global_text").html("登录成功"),4182 $("#qt_global_text").css("top", "45%"),4183 i && clearTimeout(i),4184 i = setTimeout(function() {4185 $("#qt_global_text").css("top", "-40%")4186 },4187 2e3);4188 },{4189 doms:{4190 account:'qt_account',4191 password:'qt_password',4192 phrase:'qt_phrase',4193 phraseWrapper: 'qt_phrase_wrapper',4194 isAutologin:'qtis_autologin',4195 globalTips:'qt_global_text',4196 phraseImg: 'qt_phrasecode'4197 },4198 extFun:{4199 init: function(){4200 //提交4201 $("#qt_btn").on('click', function(){4202 $(this).val('提交中...');4203 QHPass.loginUtils.submit();4204 });4205 //验证码刷新绑定4206 $('.adaptive img').on('click',function() {4207 QHPass.loginUtils.setPhrase();4208 });4209 $('.btn-reg').on('click', function(e) {4210 e.preventDefault();4211 var href = $(this).attr('href');4212 location.href = href + '?destUrl='+href+'&src='+src;4213 });4214 },4215 phrase:function(){4216 $(".adaptive").show();4217 $('#qt_phrase').focus();4218 QHPass.loginUtils.setPhrase();4219 $("#qt_btn").val('立即登录');4220 },4221 error:function(){4222 $('#qt_global_text').css('top','45%');4223 QHPass.loginUtils.setPhrase();4224 if(errTimeout) clearTimeout(errTimeout);4225 errTimeout = setTimeout(function(){4226 $('#qt_global_text').css('top','-40px');4227 }, 3000);4228 $("#qt_btn").val('立即登录');4229 }4230 },4231 phraseTime:'center'4232 });4233 };4234 function initRegister(callback){4235 initMobileReg(src, destUrl, domainList, destDomain, callback);4236 };4237 function hide(){4238 $('#login_content').hide();4239 };4240 //返回接口4241 return {4242 checkLogin: function(callback ,exit){4243 console.log("checkLogin--------------");4244 QHPass.getUserInfo(function(info){4245 //成功,用户已登录4246 if(!callback){4247 console.log(info);4248 }4249 else{4250 callback();4251 }4252 },function(info){4253 //失败,用户未登录4254 login_360.initLogin(callback, exit);4255 });4256 },4257 initLogin: function(callback, exit){4258 callback = typeof callback === "function" ? callback : function(){};4259 exit = typeof exit === "function" ? exit : function(){};4260 hide();4261 var template = Handlebars.compile($('#login_template').html());4262 var compiledDOM = template();4263 $('#login_content').html(compiledDOM);4264 //关闭按钮4265 $('#login_exit_button').on('click', function(){4266 hide();4267 exit();4268 });4269 //快速注册按钮4270 $('#register_button').on('click', function(){4271 login_360.hide();4272 login_360.initRegister(callback);4273 });4274 //当用户名框不为空时,显示清空按钮4275 //浏览器滚动到用户名处4276 $('#qt_account').focus(function(){4277 scrollTo(0, $('#qt_account').offset().top + 10);4278 loginUsernameInterval = setInterval(function(){4279 if($('#qt_account').val() !== ""){4280 $('#input_clear_username').show();4281 }4282 else{4283 $('#input_clear_username').hide();4284 }4285 }, 1/60);4286 });4287 $('#qt_account').blur(function(){4288 clearInterval(loginUsernameInterval);4289 });4290 //一键清空用户名4291 $('#input_clear_username').on('click', function(){4292 $('#qt_account').val("");4293 $('#qt_account')[0].focus();4294 });4295 //当密码框不为空时,显示清空按钮4296 $('#qt_password').focus(function(){4297 scrollTo(0, $('#qt_password').offset().top + 10);4298 loginPasswordInterval = setInterval(function(){4299 if($('#qt_password').val() !== ""){4300 $('#input_clear_password').show();4301 }4302 else{4303 $('#input_clear_password').hide();4304 }4305 }, 1/60);4306 });4307 $('#qt_password').blur(function(){4308 clearInterval(loginPasswordInterval);4309 });4310 //一键清空密码4311 $('#input_clear_password').on('click', function(){4312 $('#qt_password').val("");4313 $('#qt_password')[0].focus();4314 });4315 //验证码也是如此4316 $('#qt_phrase').focus(function(){4317 scrollTo(0, $('#qt_phrase').offset().top + 10);4318 loginPhraseInterval = setInterval(function(){4319 if($('#qt_phrase').val() !== ""){4320 $('#input_clear_phrase').show();4321 }4322 else{4323 $('#input_clear_phrase').hide();4324 }4325 }, 1/60);4326 });4327 $('#qt_phrase').blur(function(){4328 clearInterval(loginPhraseInterval);4329 });4330 $('#input_clear_phrase').on('click', function(){4331 $('#qt_phrase').val("");4332 $('#qt_phrase')[0].focus();4333 });4334 initLogin(callback);4335 $('#login_content').show();4336 },4337 initRegister: function(callback){4338 hide();4339 var template = Handlebars.compile($('#register_template').html());4340 var compiledDOM = template();4341 $('#login_content').html(compiledDOM);4342 //返回按钮,退出注册,返回登录4343 $('#login_return_button').on('click', function(){4344 login_360.hide();4345 //提示取消注册4346 $("#qt_global_text").html("取消注册"),4347 $("#qt_global_text").css("top", "45%"),4348 i && clearTimeout(i),4349 i = setTimeout(function() {4350 $("#qt_global_text").css("top", "-40%")4351 },2e3),4352 $("#qt_mobile_reg").removeClass("clicked").val("快速登录");4353 login_360.initLogin(callback);4354 });4355 //当用户名框不为空时,显示清空按钮4356 $('#qt_phone').focus(function(){4357 scrollTo(0, $('#qt_phone').offset().top + 10);4358 registerUsernameInterval = setInterval(function(){4359 if($('#qt_phone').val() !== ""){4360 $('#input_clear_username').show();4361 }4362 else{4363 $('#input_clear_username').hide();4364 }4365 }, 1/60);4366 });4367 $('#qt_phone').blur(function(){4368 clearInterval(registerUsernameInterval);4369 });4370 //一键清空用户名4371 $('#input_clear_username').on('click', function(){4372 $('#qt_phone').val("");4373 $('#input_clear_username').hide();4374 });4375 //当密码框不为空时,显示清空按钮4376 $('#qt_mobile_password').focus(function(){4377 scrollTo(0, $('#qt_mobile_password').offset().top + 10);4378 registerPasswordInterval = setInterval(function(){4379 if($('#qt_mobile_password').val() !== ""){4380 $('#input_clear_password').show();4381 }4382 else{4383 $('#input_clear_password').hide();4384 }4385 //当密码长度大于20时,提示4386 if($('#qt_mobile_password').val().length > 20){4387 $('#qt_mobile_password').val($('#qt_mobile_password').val().substring(0, 20));4388 $("#qt_global_text").html("密码长度不能大于20位"),4389 $("#qt_global_text").css("top", "45%"),4390 i && clearTimeout(i),4391 i = setTimeout(function() {4392 $("#qt_global_text").css("top", "-40%")4393 },2e3),4394 $("#qt_mobile_reg").removeClass("clicked").val("快速登录");4395 }4396 }, 1/60);4397 });4398 $('#qt_mobile_password').blur(function(){4399 clearInterval(registerPasswordInterval);4400 });4401 //一键清空密码4402 $('#input_clear_password').on('click', function(){4403 $('#qt_mobile_password').val("");4404 $('#input_clear_password').hide();4405 });4406 //验证码也是如此4407 $('#qt_smscode').focus(function(){4408 scrollTo(0, $('#qt_smscode').offset().top + 10);4409 registerSmsInterval = setInterval(function(){4410 if($('#qt_smscode').val() !== ""){4411 $('#input_clear_smscode').show();4412 }4413 else{4414 $('#input_clear_smscode').hide();4415 }4416 }, 1/60);4417 });4418 $('#qt_smscode').blur(function(){4419 clearInterval(registerSmsInterval);4420 });4421 $('#input_clear_smscode').on('click', function(){4422 $('#qt_smscode').val("");4423 $('#input_clear_smscode').hide();4424 });4425 initRegister(callback);4426 $('#login_content').show();4427 },4428 hide: function(){4429 $('#login_content').hide();4430 },4431 //开发商接口调用4432 g: QHPass.getUserInfo,4433 }...

Full Screen

Full Screen

fetch-canvas-tainting-tests.js

Source:fetch-canvas-tainting-tests.js Github

copy

Full Screen

...28 promise_test(function(t) {29 const SCOPE = 'resources/fetch-canvas-tainting-iframe.html';30 const SCRIPT = 'resources/fetch-rewrite-worker.js';31 const host_info = get_host_info();32 // login_https() is needed because some test cases use credentials.33 return login_https(t)34 .then(function() {35 return service_worker_unregister_and_register(t, SCRIPT, SCOPE);36 })37 .then(function(registration) {38 promise_test(() => {39 if (frame)40 frame.remove();41 return registration.unregister();42 }, 'restore global state');43 return wait_for_state(t, registration.installing, 'activated');44 })45 .then(function() { return with_iframe(SCOPE); })46 .then(f => {47 frame = f;...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1var wptools = require('wptools');2var options = {3};4var wp = new wptools(options);5wp.login_https(function(err, data) {6 if (err) {7 console.log(err);8 } else {9 console.log(data);10 }11});

Full Screen

Using AI Code Generation

copy

Full Screen

1var wptools = require('wptools');2wptools.login_https(url, function (err, res) {3 if (err) {4 console.log(err);5 } else {6 console.log(res);7 }8});9var wptools = require('wptools');10wptools.login_http(url, function (err, res) {11 if (err) {12 console.log(err);13 } else {14 console.log(res);15 }16});17var wptools = require('wptools');18wptools.login(url, function (err, res) {19 if (err) {20 console.log(err);21 } else {22 console.log(res);23 }24});25var wptools = require('wptools');26wptools.get(url, function (err, res) {27 if (err) {28 console.log(err);29 } else {30 console.log(res);31 }32});33var wptools = require('wptools');34wptools.getFromApi(url, function (err, res) {35 if (err) {36 console.log(err);37 } else {38 console.log(res);39 }40});41var wptools = require('wptools');42wptools.getFromApi(url, function (err, res) {43 if (err) {44 console.log(err);45 } else {46 console.log(res);47 }48});

Full Screen

Using AI Code Generation

copy

Full Screen

1var wptools = require('wptools');2wptools.login_https(function(err, cookie) {3});4var wptools = require('wptools');5wptools.login(function(err, cookie) {6});7var wptools = require('wptools');8wptools.login_https(function(err, cookie) {9});10var wptools = require('wptools');11wptools.login(function(err, cookie) {12});13var wptools = require('wptools');14wptools.login_https(function(err, cookie) {15});16var wptools = require('wptools');17wptools.login(function(err, cookie) {18});19var wptools = require('wptools');20wptools.login_https(function(err, cookie) {21});22var wptools = require('wptools');23wptools.login(function(err, cookie) {24});25var wptools = require('wptools');26wptools.login_https(function(err, cookie) {27});28var wptools = require('wptools');29wptools.login(function(err, cookie) {30});31var wptools = require('wptools');32wptools.login_https(function(err, cookie) {

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run wpt automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful