⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 expansion_embed.js

📁 这篇文章主要用来说明获取设备表述的情况,希望大家可以得到帮助
💻 JS
📖 第 1 页 / 共 3 页
字号:
(function(){var i=false,j=null,l=true;function n(a){throw a;}var aa=aa||{},o=this,ca=function(a,b,c){var d=a.split("."),e=c||o,f;!(d[0]in e)&&e.execScript&&e.execScript("var "+d[0]);for(;d.length&&(f=d.shift());)if(!d.length&&ba(b))e[f]=b;else e=e[f]?e[f]:(e[f]={})},da=function(a,b){var c=a.split("."),d=b||o,e;for(;e=c.shift();)if(d[e])d=d[e];else return j;return d},ea=function(){},fa=function(a){var b=typeof a;if(b=="object")if(a){if(a instanceof Array||!(a instanceof Object)&&Object.prototype.toString.call(a)=="[object Array]")return"array";if(typeof a.call!="undefined")return"function"}else return"null";else if(b=="function"&&typeof a.call=="undefined")return"object";return b},ba=function(a){return typeof a!="undefined"},r=function(a){return fa(a)=="array"},ga=function(a){var b=fa(a);return b=="array"||b=="object"&&typeof a.length=="number"},s=function(a){return typeof a=="string"},ha=function(a){return fa(a)=="function"},ia=function(a){var b=fa(a);return b=="object"||b=="array"||b=="function"},la=function(a){if(a.hasOwnProperty&&a.hasOwnProperty(ja)){var b=a[ja];if(b)return b}a[ja]||(a[ja]=++ka);return a[ja]},ja="closure_hashCode_",ka=0,ma=function(a){var b=fa(a);if(b=="object"||b=="array"){if(a.clone)return a.clone.call(a);var c=b=="array"?[]:{};for(var d in a)c[d]=ma(a[d]);return c}return a},t=function(a,b){var c=a.uc;if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);c&&d.unshift.apply(d,c);c=d}b=a.wc||b;a=a.vc||a;var e,f=b||o;e=c?function(){var g=Array.prototype.slice.call(arguments);g.unshift.apply(g,c);return a.apply(f,g)}:function(){return a.apply(f,arguments)};e.uc=c;e.wc=b;e.vc=a;return e},na=Date.now||function(){return(new Date).getTime()},u=function(a,b,c){ca(a,b,c)},v=function(a,b){function c(){}c.prototype=b.prototype;a.I=b.prototype;a.prototype=new c};var oa=function(a){if(/^\s*$/.test(a))return i;var b=/\\["\\\/bfnrtu]/g,c=/"[^"\\\n\r\u2028\u2029\x00-\x1f\x80-\x9f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,d=/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,e=/^[\],:{}\s\u2028\u2029]*$/;return e.test(a.replace(b,"@").replace(c,"]").replace(d,""))},pa=function(a){String(a);if(oa(a))try{return eval("("+a+")")}catch(b){}n(Error("Invalid JSON string: "+a))};var w=function(){};w.prototype.serialize=function(a){var b=[];this.Ba(a,b);return b.join("")};w.prototype.Ba=function(a,b){switch(typeof a){case "string":this.tb(a,b);break;case "number":this.pc(a,b);break;case "boolean":b.push(a);break;case "undefined":b.push("null");break;case "object":if(a==j){b.push("null");break}if(r(a)){this.oc(a,b);break}this.qc(a,b);break;case "function":break;default:n(Error("Unknown type: "+typeof a))}};var qa={'"':'\\"',"\\":"\\\\","/":"\\/","\u0008":"\\b","\u000c":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\u000b":"\\u000b"},ra=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;w.prototype.tb=function(a,b){b.push('"',a.replace(ra,function(c){if(c in qa)return qa[c];var d=c.charCodeAt(0),e="\\u";if(d<16)e+="000";else if(d<256)e+="00";else if(d<4096)e+="0";return qa[c]=e+d.toString(16)}),'"')};w.prototype.pc=function(a,b){b.push(isFinite(a)&&!isNaN(a)?a:"null")};w.prototype.oc=function(a,b){var c=a.length;b.push("[");var d="",e=0;for(;e<c;e++){b.push(d);this.Ba(a[e],b);d=","}b.push("]")};w.prototype.qc=function(a,b){b.push("{");var c="";for(var d in a)if(a.hasOwnProperty(d)){var e=a[d];if(typeof e!="function"){b.push(c);this.tb(d,b);b.push(":");this.Ba(e,b);c=","}}b.push("}")};var x=function(){};x.prototype.Xa=i;x.prototype.dispose=function(){if(!this.Xa){this.Xa=l;this.b()}};x.prototype.b=function(){};var sa=function(a,b,c){if(a.indexOf)return a.indexOf(b,c);if(Array.indexOf)return Array.indexOf(a,b,c);var d=c==j?0:c<0?Math.max(0,a.length+c):c,e=d;for(;e<a.length;e++)if(e in a&&a[e]===b)return e;return-1},ta=function(a,b,c){if(a.forEach)a.forEach(b,c);else if(Array.forEach)Array.forEach(a,b,c);else{var d=a.length,e=s(a)?a.split(""):a,f=0;for(;f<d;f++)f in e&&b.call(c,e[f],f,a)}},ua=function(a,b){var c=sa(a,b),d;if(d=c!=-1)Array.prototype.splice.call(a,c,1).length==1;return d};var va=function(a){if(r(a))return a.concat();else{var b=[],c=0,d=a.length;for(;c<d;c++)b[c]=a[c];return b}},wa=function(a){if(r(a))return a.concat();return va(a)},xa=function(a){var b=1;for(;b<arguments.length;b++){var c=arguments[b];if(ga(c)){c=wa(c);a.push.apply(a,c)}else a.push(c)}};var y=function(a,b){this.x=ba(a)?a:0;this.y=ba(b)?b:0};y.prototype.clone=function(){return new y(this.x,this.y)};y.prototype.toString=function(){return"("+this.x+", "+this.y+")"};var z=function(a,b){this.width=a;this.height=b};z.prototype.clone=function(){return new z(this.width,this.height)};z.prototype.toString=function(){return"("+this.width+" x "+this.height+")"};z.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};z.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};var ya=function(a){var b=[],c=0;for(var d in a)b[c++]=a[d];return b},za=function(a){var b=[],c=0;for(var d in a)b[c++]=d;return b};var Aa=function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},Ba=/^[a-zA-Z0-9\-_.!~*'()]*$/,Ca=function(a){a=String(a);if(!Ba.test(a))return encodeURIComponent(a);return a};var Ea=function(a,b){var c=0,d=Aa(String(a)).split("."),e=Aa(String(b)).split("."),f=Math.max(d.length,e.length),g=0;for(;c==0&&g<f;g++){var h=d[g]||"",m=e[g]||"",k=new RegExp("(\\d*)(\\D*)","g"),p=new RegExp("(\\d*)(\\D*)","g");do{var q=k.exec(h)||["","",""],B=p.exec(m)||["","",""];if(q[0].length==0&&B[0].length==0)break;var Z=q[1].length==0?0:parseInt(q[1],10),U=B[1].length==0?0:parseInt(B[1],10);c=Da(Z,U)||Da(q[2].length==0,B[2].length==0)||Da(q[2],B[2])}while(c==0)}return c},Da=function(a,b){if(a<b)return-1;else if(a>b)return 1;return 0};var A,Fa,Ga,Ha,Ia,Ja,Ka,La,Ma,Na=function(){return o.navigator?o.navigator.userAgent:j};var Oa=function(){Ja=Ia=Ha=Ga=Fa=A=i;var a;if(a=Na()){var b=o.navigator;A=a.indexOf("Opera")==0;Fa=!A&&a.indexOf("MSIE")!=-1;Ha=(Ga=!A&&a.indexOf("WebKit")!=-1)&&a.indexOf("Mobile")!=-1;Ja=(Ia=!A&&!Ga&&b.product=="Gecko")&&b.vendor=="Camino"}};Oa();var Pa=A,C=Fa,Qa=Ia,D=Ga,Ra=Ha,Sa=function(){var a=o.navigator;return a&&a.platform||""},Ta=Sa(),Ua=function(){Ka=Ta.indexOf("Mac")!=-1;La=Ta.indexOf("Win")!=-1;Ma=Ta.indexOf("Linux")!=-1};Ua();var Va=function(){var a="",b;if(Pa&&o.opera){var c=o.opera.version;a=typeof c=="function"?c():c}else{if(Qa)b=/rv\:([^\);]+)(\)|;)/;else if(C)b=/MSIE\s+([^\);]+)(\)|;)/;else if(D)b=/WebKit\/(\S+)/;if(b){var d=b.exec(Na());a=d?d[1]:""}}return a},Wa=Va();var Xa;var Za=function(a){return a?new E(Ya(a)):Xa||(Xa=new E)};var $a=function(a){var b=a||o||window,c=b.document;if(D&&!(Ea(Wa,"500")>=0)&&!Ra){if(typeof b.innerHeight=="undefined")b=window;var d=b.innerHeight,e=b.document.documentElement.scrollHeight;if(b==b.top)if(e<d)d-=15;return new z(b.innerWidth,d)}var f=Za(c),g=f.ua()&&(!Pa||Pa&&Ea(Wa,"9.50")>=0)?c.documentElement:c.body;return new z(g.clientWidth,g.clientHeight)};var ab=function(a,b){a.appendChild(b)},bb=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):j},cb=D&&Ea(Wa,"521")<=0,db=function(a,b){if(typeof a.contains!="undefined"&&!cb&&b.nodeType==1)return a==b||a.contains(b);if(typeof a.compareDocumentPosition!="undefined")return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a},Ya=function(a){return a.nodeType==9?a:a.ownerDocument||a.document},E=function(a){this.R=a||o.document||document};E.prototype.eb=function(a){return s(a)?this.R.getElementById(a):a};E.prototype.createElement=function(a){return this.R.createElement(a)};E.prototype.ua=function(){var a=this.R;if(a.compatMode)return a.compatMode=="CSS1Compat";if(D){var b=a.createElement("div");b.style.cssText="position:absolute;width:0;height:0;width:1";var c=b.style.width=="1px"?"BackCompat":"CSS1Compat";return(a.compatMode=c)=="CSS1Compat"}return i};E.prototype.Ub=function(){var a=this.R;return!D&&this.ua()?a.documentElement:a.body};E.prototype.db=function(){var a=this.Ub();return new y(a.scrollLeft,a.scrollTop)};E.prototype.appendChild=ab;E.prototype.contains=db;if("StopIteration"in o)var eb=o.StopIteration;else eb=Error("StopIteration");var fb=function(){};fb.prototype.next=function(){n(eb)};fb.prototype.__iterator__=function(){return this};var gb=function(a){if(typeof a.v=="function")return a.v();if(s(a))return a.split("");if(ga(a)){var b=[],c=a.length,d=0;for(;d<c;d++)b.push(a[d]);return b}return ya(a)},hb=function(a){if(typeof a.D=="function")return a.D();if(typeof a.v=="function")return undefined;if(ga(a)||s(a)){var b=[],c=a.length,d=0;for(;d<c;d++)b.push(d);return b}return za(a)},ib=function(a,b,c){if(typeof a.forEach=="function")a.forEach(b,c);else if(ga(a)||s(a))ta(a,b,c);else{var d=hb(a),e=gb(a),f=e.length,g=0;for(;g<f;g++)b.call(c,e[g],d&&d[g],a)}};var F=function(a){this.q={};this.h=[];var b=arguments.length;if(b>1){if(b%2)n(Error("Uneven number of arguments"));var c=0;for(;c<b;c+=2)this.set(arguments[c],arguments[c+1])}else a&&this.Ab(a)};F.prototype.c=0;F.prototype.na=0;F.prototype.v=function(){this.aa();var a=[],b=0;for(;b<this.h.length;b++){var c=this.h[b];a.push(this.q[c])}return a};F.prototype.D=function(){this.aa();return this.h.concat()};F.prototype.s=function(a){return G(this.q,a)};F.prototype.remove=function(a){if(G(this.q,a)){delete this.q[a];this.c--;this.na++;this.h.length>2*this.c&&this.aa();return l}return i};F.prototype.aa=function(){if(this.c!=this.h.length){var a=0,b=0;for(;a<this.h.length;){var c=this.h[a];if(G(this.q,c))this.h[b++]=c;a++}this.h.length=b}if(this.c!=this.h.length){var d={},a=0,b=0;for(;a<this.h.length;){var c=this.h[a];if(!G(d,c)){this.h[b++]=c;d[c]=1}a++}this.h.length=b}};F.prototype.get=function(a,b){if(G(this.q,a))return this.q[a];return b};F.prototype.set=function(a,b){if(!G(this.q,a)){this.c++;this.h.push(a);this.na++}this.q[a]=b};F.prototype.Ab=function(a){var b,c;if(a instanceof F){b=a.D();c=a.v()}else{b=za(a);c=ya(a)}var d=0;for(;d<b.length;d++)this.set(b[d],c[d])};F.prototype.clone=function(){return new F(this)};F.prototype.__iterator__=function(a){this.aa();var b=0,c=this.h,d=this.q,e=this.na,f=this,g=new fb;g.next=function(){for(;l;){if(e!=f.na)n(Error("The map has changed since the iterator was created"));if(b>=c.length)n(eb);var h=c[b++];return a?h:d[h]}};return g};if(Object.prototype.hasOwnProperty)var G=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};else G=function(a,b){return b in a&&a[b]!==Object.prototype[b]};var jb=/^(?:([^:\/?#]+):)?(?:\/\/(?:([^\/?#]*)@)?([^\/?#:@]*)(?::([0-9]+))?)?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/,kb=function(a){return a.match(jb)};var H=function(a,b){var c;if(a instanceof H){this.H(b==j?a.m:b);this.Ha(a.A);this.Ia(a.Z);this.Ca(a.S);this.Fa(a.N);this.Ea(a.W);this.Ga(a.r.clone());this.Da(a.T)}else if(a&&(c=kb(String(a)))){this.H(!!b);this.Ha(c[1],l);this.Ia(c[2],l);this.Ca(c[3],l);this.Fa(c[4]);this.Ea(c[5],l);this.Ga(c[6]);this.Da(c[7],l)}else{this.H(!!b);this.r=new I(j,this,this.m)}};H.prototype.A="";H.prototype.Z="";H.prototype.S="";H.prototype.N=j;H.prototype.W="";H.prototype.T="";H.prototype.$b=i;H.prototype.m=i;H.prototype.toString=function(){if(this.i)return this.i;var a=[];this.A&&a.push(lb(this.A,mb),":");if(this.S){a.push("//");this.Z&&a.push(lb(this.Z,mb),"@");a.push(nb(this.S));this.N!=j&&a.push(":",String(this.N))}this.W&&a.push(lb(this.W,ob));var b=String(this.r);b&&a.push("?",b);this.T&&a.push("#",lb(this.T,pb));return this.i=a.join("")};H.prototype.clone=function(){return qb(this.A,this.Z,this.S,this.N,this.W,this.r.clone(),this.T,this.m)};H.prototype.Ha=function(a,b){this.B();delete this.i;if(this.A=b?a?decodeURIComponent(a):"":a)this.A=this.A.replace(/:$/,"");return this};H.prototype.Ia=function(a,b){this.B();delete this.i;this.Z=b?a?decodeURIComponent(a):"":a;return this};H.prototype.Ca=function(a,b){this.B();delete this.i;this.S=b?a?decodeURIComponent(a):"":a;return this};H.prototype.Fa=function(a){this.B();delete this.i;if(a){a=Number(a);if(isNaN(a)||a<0)n(Error("Bad port number "+a));this.N=a}else this.N=j;return this};H.prototype.Ea=function(a,b){this.B();delete this.i;this.W=b?a?decodeURIComponent(a):"":a;return this};H.prototype.Ga=function(a){this.B();delete this.i;if(a instanceof I){this.r=a;this.r.yb=this;this.r.H(this.m)}else this.r=new I(a,this,this.m);return this};H.prototype.ea=function(a){return this.r.get(a)};H.prototype.Da=function(a,b){this.B();delete this.i;this.T=b?a?decodeURIComponent(a):"":a;return this};H.prototype.B=function(){if(this.$b)n(Error("Tried to modify a read-only Uri"))};H.prototype.H=function(a){this.m=a;this.r&&this.r.H(a)};var qb=function(a,b,c,d,e,f,g,h){var m=new H(j,h);a&&m.Ha(a);b&&m.Ia(b);c&&m.Ca(c);d&&m.Fa(d);e&&m.Ea(e);f&&m.Ga(f);g&&m.Da(g);return m};var nb=function(a){if(s(a))return encodeURIComponent(a);return j},rb=/^[a-zA-Z0-9\-_.!~*'():\/;?]*$/,lb=function(a,b){var c=j;if(s(a)){c=a;rb.test(c)||(c=encodeURI(a));if(c.search(b)>=0)c=c.replace(b,sb)}return c},sb=function(a){var b=a.charCodeAt(0);return"%"+(b>>4&15).toString(16)+(b&15).toString(16)},mb=/[#\/\?@]/g,ob=/[\#\?]/g,pb=/#/g,I=function(a,b,c){this.e=new F;this.yb=b||j;this.m=!!c;if(a){var d=a.split("&"),e=0;for(;e<d.length;e++){var f=d[e].indexOf("="),g=j,h=j;if(f>=0){g=d[e].substring(0,f);h=d[e].substring(f+1)}else g=d[e];g=decodeURIComponent(g.replace(/\+/g," "));g=this.C(g);this.add(g,h?decodeURIComponent(h.replace(/\+/g," ")):"")}}};I.prototype.c=0;I.prototype.add=function(a,b){this.ja();a=this.C(a);if(this.s(a)){var c=this.e.get(a);r(c)?c.push(b):this.e.set(a,[c,b])}else this.e.set(a,b);this.c++;return this};I.prototype.remove=function(a){a=this.C(a);if(this.e.s(a)){this.ja();var b=this.e.get(a);if(r(b))this.c-=b.length;else this.c--;return this.e.remove(a)}return i};I.prototype.s=function(a){a=this.C(a);return this.e.s(a)};I.prototype.D=function(){var a=this.e.v(),b=this.e.D(),c=[],d=0;for(;d<b.length;d++){var e=a[d];if(r(e)){var f=0;for(;f<e.length;f++)c.push(b[d])}else c.push(b[d])}return c};I.prototype.v=function(a){var b;if(a){var c=this.C(a);if(this.s(c)){var d=this.e.get(c);if(r(d))return d;else{b=[];b.push(d)}}else b=[]}else{var e=this.e.v();b=[];var f=0;for(;f<e.length;f++){var g=e[f];r(g)?xa(b,g):b.push(g)}}return b};I.prototype.set=function(a,b){this.ja();a=this.C(a);if(this.s(a)){var c=this.e.get(a);if(r(c))this.c-=c.length;else this.c--}this.e.set(a,b);this.c++;return this};I.prototype.get=function(a,b){a=this.C(a);if(this.s(a)){var c=this.e.get(a);return r(c)?c[0]:c}else return b};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -