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

📄 show_ads.js

📁 很好的传感器学习资料
💻 JS
📖 第 1 页 / 共 4 页
字号:
var j=kb(b).ta();d.x=h.left+j.x;d.y=h.top+j.y}else if(b.getBoxObjectFor&&!c&&!vb){h=b.getBoxObjectFor(a);var k=b.getBoxObjectFor(e);d.x=h.screenX-k.screenX;d.y=h.screenY-k.screenY}else{f=a;do{d.x+=f.offsetLeft;d.y+=f.offsetTop;if(f!=a){d.x+=f.clientLeft||0;d.y+=f.clientTop||0}if(A&&xb(f)=="fixed"){d.x+=b.body.scrollLeft;d.y+=b.body.scrollTop;break}f=f.offsetParent}while(f&&f!=a);if(ab||A&&xb(a)=="absolute")d.y-=b.body.offsetTop;f=a.offsetParent;while(f&&f!=b.body){d.x-=f.scrollLeft;if(!ab||f.tagName!="TR")d.y-=f.scrollTop;f=f.offsetParent}}if(fb&&a.getBoundingClientRect){var l=xb(a);if(l=="static"||l=="relative"){d.x=Math.floor(d.x);d.y=Math.floor(d.y)}}return d},Ab=function(a){var b=new Ca;if(a.nodeType==1)if(a.getBoundingClientRect){var c=a.getBoundingClientRect();b.x=c.left;b.y=c.top}else{var d=kb(a).ta(),e=zb(a);b.x=e.x-d.x;b.y=e.y-d.y}else{b.x=a.clientX;b.y=a.clientY}return b},Bb=function(a){var b=jb(a),c="";if(b.createTextRange){var d=b.body.createTextRange();d.moveToElementText(a);c=d.queryCommandValue("FontName")}if(!c){c=wb(a,"fontFamily")||(a.currentStyle?a.currentStyle.fontFamily:i)||a.style.fontFamily;if(ab&&Ya)c=c.replace(/ \[[^\]]*\]/,"")}var e=c.split(",");if(e.length>1)c=e[0];return La(c,"\"'")};var Cb=document,D=navigator,E=window;function Db(){var a=Cb.cookie,b=Math.round((new Date).getTime()/1000),c=E.google_analytics_domain_name,d=typeof c=="undefined"?Eb("auto"):Eb(c),e=a.indexOf("__utma="+d+".")>-1,f=a.indexOf("__utmb="+d)>-1,h=a.indexOf("__utmc="+d)>-1,j,k={};if(e){j=a.split("__utma="+d+".")[1].split(";")[0].split(".");k.sid=f&&h?j[3]+"":E&&E.gaGlobal&&E.gaGlobal.sid?E.gaGlobal.sid:b+"";k.vid=j[0]+"."+j[1];k.from_cookie=m}else{k.sid=E&&E.gaGlobal&&E.gaGlobal.sid?E.gaGlobal.sid:b+"";k.vid=E&&E.gaGlobal&&E.gaGlobal.vid?E.gaGlobal.vid:(Fb()^Gb()&2147483647)+"."+b;k.from_cookie=g}k.dh=d;k.hid=E&&E.gaGlobal&&E.gaGlobal.hid?E.gaGlobal.hid:Fb();E.gaGlobal=k;return k}function Fb(){return Math.round(Math.random()*2147483647)}function Gb(){var a=Cb.cookie?Cb.cookie:"",b=E.history.length,c,d,e=[D.appName,D.version,D.language?D.language:D.browserLanguage,D.platform,D.userAgent,D.javaEnabled()?1:0].join("");if(E.screen)e+=E.screen.width+"x"+E.screen.height+E.screen.colorDepth;else if(E.java){d=java.awt.Toolkit.getDefaultToolkit().getScreenSize();e+=d.screen.width+"x"+d.screen.height}e+=a;e+=Cb.referrer?Cb.referrer:"";c=e.length;while(b>0)e+=b--^c++;return Hb(e)}function Hb(a){var b=1,c=0,d,e;if(!(a==undefined||a=="")){b=0;for(d=a.length-1;d>=0;d--){e=a.charCodeAt(d);b=(b<<6&268435455)+e+(e<<14);c=b&266338304;b=c!=0?b^c>>21:b}}return b}function Eb(a){if(!a||a==""||a=="none")return 1;if("auto"==a){a=Cb.domain;if("www."==a.substring(0,4))a=a.substring(4,a.length)}return Hb(a.toLowerCase())};var F=function(){};F.prototype.sa=g;F.prototype.dispose=function(){if(!this.sa){this.b();this.sa=m}};F.prototype.b=function(){};var Ib=function(a){if(/^\s*$/.test(a))return g;var b=/\\["\\\/bfnrtu]/g,c=/"[^"\\\n\r\u2028\u2029\x00-\x1f\x7f-\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,""))},Jb=function(a){String(a);if(Ib(a))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);},Kb=i,Lb=function(a){Kb||(Kb=new G);return Kb.serialize(a)},G=function(){};G.prototype.serialize=function(a){var b=[];this.ca(a,b);return b.join("")};G.prototype.ca=function(a,b){switch(typeof a){case "string":this.Da(a,b);break;case "number":this.Ab(a,b);break;case "boolean":b.push(a);break;case "undefined":b.push("null");break;case "object":if(a==i){b.push("null");break}if(t(a)=="array"){this.zb(a,b);break}this.Bb(a,b);break;case "function":break;default:throw Error("Unknown type: "+typeof a);}};var Mb={'"':'\\"',"\\":"\\\\","/":"\\/","\u0008":"\\b","\u000c":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\u000b":"\\u000b"};G.prototype.Da=function(a,b){b.push('"',a.replace(/[\\\"\x00-\x1f\x80-\uffff]/g,function(c){if(c in Mb)return Mb[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 Mb[c]=e+d.toString(16)}),'"')};G.prototype.Ab=function(a,b){b.push(isFinite(a)&&!isNaN(a)?a:"null")};G.prototype.zb=function(a,b){var c=a.length;b.push("[");var d="";for(var e=0;e<c;e++){b.push(d);this.ca(a[e],b);d=","}b.push("]")};G.prototype.Bb=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.Da(d,b);b.push(":");this.ca(e,b);c=","}}b.push("}")};var H="SETUP_ACK",I={},Ob=function(a,b){var c=b||Nb,d=c.length,e="";while(a-- >0)e+=c.charAt(Math.floor(Math.random()*d));return e},Nb="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var Pb=function(){};x(Pb,F);var J=function(a){this.a=a;this.O=[];this.Ob=v(this.Xa,this)};x(J,Pb);J.prototype.Z=g;J.prototype.Cb=0;J.prototype.connect=function(){if(this.a.r()==0){this.k=this.a.s;this.k.XPC_toOuter=v(this.ua,this)}else this.ia()};J.prototype.ia=function(){var a=m;try{if(!this.k)this.k=window.frameElement;if(this.k&&this.k.XPC_toOuter){this.ya=this.k.XPC_toOuter;this.k.XPC_toOuter.XPC_toInner=v(this.ua,this);a=g;this.send("tp",H);this.a.l()}}catch(b){}if(a){if(!this.Ja)this.Ja=v(this.ia,this);window.setTimeout(this.Ja,100)}};J.prototype.G=function(a){if(this.a.r()==0&&!this.a.f()&&a==H){this.ya=this.k.XPC_toOuter.XPC_toInner;this.a.l()}else throw Error("Got unexpected transport message.");};J.prototype.ua=function(a,b){if(!this.Z&&this.O.length==0)this.a.i(a,b);else{this.O.push({serviceName:a,payload:b});if(this.O.length==1)this.Cb=window.setTimeout(this.Ob,1)}};J.prototype.Xa=function(){while(this.O.length){var a=this.O.shift();this.a.i(a.serviceName,a.payload)}};J.prototype.send=function(a,b){this.Z=m;this.ya(a,b);this.Z=g};J.prototype.b=function(){J.n.b.call(this);this.ya=i;this.k=i};var K=function(a){this.a=a;this.P=this.a.c.ppu;this.Qb=this.a.c.lpu;this.aa=[]},Qb,Rb,Sb;x(K,Pb);K.prototype.ba=0;K.prototype.v=g;K.prototype.V=g;var Tb="googlexpc";K.prototype.L=function(){return Tb+"_"+this.a.name+"_msg"};K.prototype.K=function(){return Tb+"_"+this.a.name+"_ack"};K.prototype.connect=function(){if(!this.V){this.Pa();this.V=m}this.La()};K.prototype.Pa=function(){var a=this.L();this.C=this.S(a);this.wa=window.frames[a];a=this.K();this.w=this.S(a);this.fa=window.frames[a]};K.prototype.S=function(a){var b=ib().createElement("iframe"),c=b.style;c.position="absolute";c.top="-10px";c.left="10px";c.width="1px";c.height="1px";b.id=b.name=a;b.src=this.P+"#INITIAL";document.body.appendChild(b);return b};K.prototype.Ia=function(){var a=this.a.g.frames,b=a.length;for(var c=0;c<b;c++){var d;try{if(a[c]&&a[c].name)d=a[c].name}catch(e){}if(!d)continue;var f=d.split("_");if(f.length==3&&f[0]==Tb&&f[1]=="reconnect"){this.a.name=f[2];this.Va();this.V=g;break}}};K.prototype.Va=function(){if(this.C){this.C.parentNode.removeChild(this.C);this.C=i;this.wa=i}if(this.w){this.w.parentNode.removeChild(this.w);this.w=i;this.fa=i}};K.prototype.La=function(){if(this.va(this.L())&&this.va(this.K())){this.nb=new Ub(this,this.a.g.frames[this.L()],v(this.sb,this));this.Ha=new Ub(this,this.a.g.frames[this.K()],v(this.rb,this));this.la()}else{if(this.a.r()==1&&!this.Sb)this.Sb=this.S(Tb+"_reconnect_"+this.a.name);else this.a.r()==0&&this.Ia();window.setTimeout(v(this.connect,this),100)}};K.prototype.va=function(a){try{var b=this.a.g.frames[a];if(!b||b.location.href.indexOf(this.Qb)!=0)return g}catch(c){return g}return m};K.prototype.la=function(){var a=this.a.g.frames;if(a[this.K()]&&a[this.L()]){this.ob=new Vb(this.P,this.wa);this.R=new Vb(this.P,this.fa);window.setTimeout(v(function(){this.ob.send("SETUP");this.Ub=m;this.v=m},this),100)}else{if(!this.Ma)this.Ma=v(this.la,this);window.setTimeout(this.Ma,100)}};K.prototype.ka=function(){if(this.yb&&this.Rb){this.a.l();if(this.J){for(var a=0,b;a<this.J.length;a++){b=this.J[a];this.a.i(b.service,b.payload)}delete this.J}}};K.prototype.sb=function(a){if(a=="SETUP"){if(!this.R)return;this.R.send(H);this.yb=m;this.ka()}else if(this.a.f()||this.yb){var b=a.indexOf("|"),c=a.substring(0,b),d=a.substring(b+1);b=c.indexOf(",");if(b==-1){var e=c;this.R.send("ACK:"+e);this.qa(d)}else{var e=c.substring(0,b);this.R.send("ACK:"+e);var f=c.substring(b+1).split("/");f[0]=parseInt(f[0],10);f[1]=parseInt(f[1],10);if(f[0]==1)this.za=[];this.za.push(d);if(f[0]==f[1]){this.qa(this.za.join(""));delete this.za}}}};K.prototype.rb=function(a){if(a==H){this.v=g;this.Rb=m;this.ka()}else if(this.a.f()){if(!this.v)return;var b=parseInt(a.split(":")[1],10);if(b==this.ba){this.v=g;this.Ca()}}};K.prototype.Ca=function(){if(this.v||!this.aa.length)return;var a=this.aa.shift();++this.ba;this.ob.send(this.ba+a);this.v=m};K.prototype.qa=function(a){var b=a.indexOf(":"),c=a.substr(0,b),d=a.substring(b+1);this.a.f()?this.a.i(c,d):(this.J||(this.J=[])).push({service:c,payload:d})};K.prototype.I=3800;K.prototype.send=function(a,b){var c=a+":"+b;if(!z||b.length<=this.I)this.aa.push("|"+c);else{var d=b.length,e=Math.ceil(d/this.I),f=0,h=1;while(f<d){this.aa.push(","+h+"/"+e+"|"+c.substr(f,this.I));h++;f+=this.I}}this.Ca()};K.prototype.b=function(){K.n.b.call(this);var a=Wb;Aa(a,this.nb);Aa(a,this.Ha);this.nb=this.Ha=i;rb(this.C);rb(this.w);this.C=this.w=i;this.wa=this.fa=i};var Wb=[],Yb=function(){var a=g;try{for(var b=0,c=Wb.length;b<c;b++)a=a||Wb[b].receive()}catch(d){Wb[b].e.a.pb();if(!Wb.length)return}var e=wa();if(a)Qb=e;var f=e-Qb<1000?10:100;Rb=window.setTimeout(Xb,f)},Xb=v(Yb,K),Zb=function(){Qb=wa();Rb&&window.clearTimeout(Rb);Rb=window.setTimeout(Xb,10)},Vb=function(a,b){this.P=a;this.xb=b;this.pa=0};Vb.prototype.send=function(a){this.pa=++this.pa%2;var b=this.P+"#"+this.pa+encodeURIComponent(a);try{if(A)this.xb.location.href=b;else this.xb.location.replace(b)}catch(c){}Sb=wa()};var Ub=function(a,b,c){this.e=a;this.tb=b;this.Kb=c;this.Ua=this.tb.location.href.split("#")[0]+"#INITIAL";Wb.push(this);Zb()};Ub.prototype.receive=function(){var a=this.tb.location.href;if(a!=this.Ua){this.Ua=a;var b=a.split("#")[1];if(b){b=b.substr(1);this.Kb(decodeURIComponent(b))}return m}else return g};var M=function(a,b){F.call(this);this.mb=b;this.q=[];this.Sa(a)};x(M,F);M.prototype.T=i;M.prototype.U=i;M.prototype.F=function(a){this.T=a};M.prototype.Fa=function(a){this.U=a};M.prototype.j=function(){if(this.q.length)return this.q.pop();return this.oa()};M.prototype.u=function(a){this.q.length<this.mb?this.q.push(a):this.ra(a)};M.prototype.Sa=function(a){if(a>this.mb)throw Error("[goog.structs.SimplePool] Initial cannot be greater than max");for(var b=0;b<a;b++)this.q.push(this.oa())};M.prototype.oa=function(){return this.T?this.T():{}};M.prototype.ra=function(a){if(this.U)this.U(a);else if(u(a.dispose))a.dispose();else for(var b in a)delete a[b]};M.prototype.b=function(){M.n.b.call(this);var a=this.q;while(a.length)this.ra(a.pop());delete this.q};var N=function(a,b){this.type=a;this.target=b;this.currentTarget=this.target};x(N,F);N.prototype.b=function(){delete this.type;delete this.target;delete this.currentTarget};N.prototype.D=g;N.prototype.$=m;N.prototype.stopPropagation=function(){this.D=m};N.prototype.preventDefault=function(){this.$=g};var O=function(a,b){a&&this.init(a,b)};x(O,N);O.prototype.type=i;O.prototype.target=i;O.prototype.relatedTarget=i;O.prototype.offsetX=0;O.prototype.offsetY=0;O.prototype.clientX=0;O.prototype.clientY=0;O.prototype.screenX=0;O.prototype.screenY=0;O.prototype.button=0;O.prototype.keyCode=0;O.prototype.charCode=0;O.prototype.ctrlKey=g;O.prototype.altKey=g;O.prototype.shiftKey=g;O.prototype.metaKey=g;O.prototype.h=i;O.prototype.init=function(a,b){this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;this.relatedTarget=a.relatedTarget?a.relatedTarget:this.type=="mouseover"?a.fromElement:this.type=="mouseout"?a.toElement:i;this.offsetX=typeof a.layerX=="number"?a.layerX:a.offsetX;this.offsetY=typeof a.layerY=="number"?a.layerY:a.offsetY;this.clientX=typeof a.clientX=="number"?a.clientX:a.pageX;this.clientY=typeof a.clientY=="number"?a.clientY:a.pageY;this.screenX=a.screenX||0;this.screenY=a.screenY||0;this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||(this.type=="keypress"?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.h=a;delete this.$;delete this.D};O.prototype.stopPropagation=function(){this.D=m;if(this.h.stopPropagation)this.h.stopPropagation();else this.h.cancelBubble=m};O.prototype.preventDefault=function(){this.$=g;if(this.h.preventDefault)this.h.preventDefault();else{this.h.returnValue=g;try{this.h.keyCode=-1}catch(a){}}};O.prototype.cb=function(){return this.h};O.prototype.b=function(){O.n.b.call(this);this.h=i};var P=function(){},$b=0;P.prototype.X=i;P.prototype.listener=i;P.prototype.proxy=i;P.prototype.src=i;P.prototype.type=i;P.prototype.capture=i;P.prototype.handler=i;P.prototype.key=0;P.prototype.removed=g;P.prototype.ja=g;P.prototype.init=function(a,b,c,d,e,f){if(u(a))this.X=m;else if(a&&a.handleEvent&&u(a.handleEvent))this.X=g;else throw Error("Invalid listener argument");this.listener=a;this.proxy=b;this.src=c;this.type=d;this.capture=!!e;this.handler=f;this.ja=g;this.key=++$b;this.removed=g};P.prototype.handleEvent=function(a){if(this.X)return this.listener.call(this.handler||this.src,a);return this.listener.handleEvent.call(this.listener,a)};var cc={},Q={},dc={},ec=new M(0,600);ec.F(function(){return{o:0}});ec.Fa(function(a){a.o=0});var R=new M(0,600);R.F(function(){return[]});R.Fa(function(a){a.length=0;delete a.N;delete a.xa});var fc=new M(0,600);fc.F(function(){var a=function(b){return gc.call(a.src,a.key,b)};return a});var hc=function(){return new P},ic=new M(0,600);ic.F(hc);var jc=function(){return new O},kc=function(){var a=i;if(z){a=new M(0,600);a.F(jc)}return a},lc=kc(),mc="on",nc={},oc=function(a,b,c,d,e){if(b)if(t(b)=="array"){for(var f=0;f<b.length;f++)oc(a,b[f],c,d,e);return i}else{var h=!!d,j=Q;b in j||(j[b]=ec.j());j=j[b];if(!(h in j)){j[h]=ec.j();j.o++}j=j[h];var k=va(a),l,n;if(j[k]){l=j[k];for(var f=0;f<l.length;f++){n=l[f];if(n.listener==c&&n.handler==e){if(n.removed)break;return l[f].key}}}else{l=j[k]=R.j();j.o++}var p=fc.j();p.src=a;n=ic.j();n.init(c,p,

⌨️ 快捷键说明

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