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

📄 show_ads.js

📁 详述了Matlab中画图的命令及技巧
💻 JS
📖 第 1 页 / 共 4 页
字号:
U.prototype.preventDefault=function(){this.$=m;if(this.h.preventDefault)this.h.preventDefault();else{this.h.returnValue=m;try{this.h.keyCode=-1}catch(a){}}};U.prototype.mb=function(){return this.h};U.prototype.b=function(){U.q.b.call(this);this.h=t};var V=function(){},fd=0;V.prototype.W=t;V.prototype.listener=t;V.prototype.proxy=t;V.prototype.src=t;V.prototype.type=t;V.prototype.capture=t;V.prototype.handler=t;V.prototype.key=0;V.prototype.removed=m;V.prototype.ka=m;V.prototype.init=function(a,b,c,d,e,f){if(C(a))this.W=j;else if(a&&a.handleEvent&&C(a.handleEvent))this.W=m;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.ka=m;this.key=++fd;this.removed=m};V.prototype.handleEvent=function(a){if(this.W)return this.listener.call(this.handler||this.src,a);return this.listener.handleEvent.call(this.listener,a)};var gd={},W={},hd={},id=new T(0,600);id.G(function(){return{t:0}});id.Ka(function(a){a.t=0});var jd=new T(0,600);jd.G(function(){return[]});jd.Ka(function(a){a.length=0;delete a.M;delete a.Ba});var kd=new T(0,600);kd.G(function(){var a=function(b){return ld.call(a.src,a.key,b)};return a});var md=function(){return new V},nd=new T(0,600);nd.G(md);var od=function(){return new U},pd=function(){var a=t;if(G){a=new T(0,600);a.G(od)}return a},qd=pd(),rd="on",sd={},td=function(a,b,c,d,e){if(b)if(B(b)=="array"){for(var f=0;f<b.length;f++)td(a,b[f],c,d,e);return t}else{var g=!!d,i=W;b in i||(i[b]=id.i());i=i[b];if(!(g in i)){i[g]=id.i();i.t++}i=i[g];var k=wb(a),l,o;if(i[k]){l=i[k];for(var f=0;f<l.length;f++){o=l[f];if(o.listener==c&&o.handler==e){if(o.removed)break;return l[f].key}}}else{l=i[k]=jd.i();i.t++}var q=kd.i();q.src=a;o=nd.i();o.init(c,q,a,b,g,e);var r=o.key;q.key=r;l.push(o);gd[r]=o;hd[k]||(hd[k]=jd.i());hd[k].push(o);if(a.addEventListener){if(a==A||!a.ec)a.addEventListener(b,q,g)}else a.attachEvent(ud(b),q);return r}else throw Error("Invalid event type");},vd=function(a,b,c,d,e){if(B(b)=="array"){for(var f=0;f<b.length;f++)vd(a,b[f],c,d,e);return t}var g=!!d,i=wd(a,b,g);if(!i)return m;for(var f=0;f<i.length;f++)if(i[f].listener==c&&i[f].capture==g&&i[f].handler==e)return xd(i[f].key);return m},xd=function(a){if(!gd[a])return m;var b=gd[a];if(b.removed)return m;var c=b.src,d=b.type,e=b.proxy,f=b.capture;if(c.removeEventListener){if(c==A||!c.ec)c.removeEventListener(d,e,f)}else c.detachEvent&&c.detachEvent(ud(d),e);var g=wb(c),i=W[d][f][g];if(hd[g]){var k=hd[g];bc(k,b);k.length==0&&delete hd[g]}b.removed=j;i.Ba=j;yd(d,f,g,i);delete gd[a];return j},yd=function(a,b,c,d){if(!d.M)if(d.Ba){for(var e=0,f=0;e<d.length;e++){if(d[e].removed){nd.A(d[e]);continue}if(e!=f)d[f]=d[e];f++}d.length=f;d.Ba=m;if(f==0){jd.A(d);delete W[a][b][c];W[a][b].t--;if(W[a][b].t==0){id.A(W[a][b]);delete W[a][b];W[a].t--}if(W[a].t==0){id.A(W[a]);delete W[a]}}}},wd=function(a,b,c){var d=W;if(b in d){d=d[b];if(c in d){d=d[c];var e=wb(a);if(d[e])return d[e]}}return t},ud=function(a){if(a in sd)return sd[a];return sd[a]=rd+a},Ad=function(a,b,c,d){var e=1,f=W;if(b in f){f=f[b];if(c in f){f=f[c];var g=wb(a);if(f[g]){var i=f[g];if(i.M)i.M++;else i.M=1;try{var k=i.length;for(var l=0;l<k;l++){var o=i[l];if(o&&!o.removed)e&=zd(o,d)!==m}}finally{i.M--;yd(b,c,g,i)}}}}return Boolean(e)},zd=function(a,b){var c=a.handleEvent(b);a.ka&&xd(a.key);return c},ld=function(a,b){if(!gd[a])return j;var c=gd[a],d=c.type,e=W;if(!(d in e))return j;e=e[d];var f;if(G){var g=b||nb("window.event"),i=j in e;if(i){if(g.keyCode<0||g.returnValue!=undefined)return j;Bd(g)}wb(c.src);var k=qd.i();k.init(g,this);f=j;try{if(i){var l=jd.i();for(var o=k.currentTarget;o;o=o.parentNode)l.push(o);for(var q=l.length-1;!k.F&&q>=0;q--){k.currentTarget=l[q];f&=Ad(l[q],d,j,k)}for(var q=0;!k.F&&q<l.length;q++){k.currentTarget=l[q];f&=Ad(l[q],d,m,k)}}else f=zd(c,k)}finally{if(l){l.length=0;jd.A(l)}k.dispose();qd.A(k)}return f}var r=new U(b,this);try{f=zd(c,r)}finally{r.dispose()}return f},Bd=function(a){var b=m;if(a.keyCode==0)try{a.keyCode=-1;return}catch(c){b=j}if(b||a.returnValue==undefined)a.returnValue=j};var X=function(a){this.a=a;this.ic=this.a.c.pru;this.Fb=this.a.c.ifrid;H&&Cd()};F(X,Q);if(H){var Dd=[],Ed=0,Cd=function(){Ed||(Ed=window.setTimeout(function(){Fd()},1000))},Fd=function(a){var b=E(),c=a||3000;while(Dd.length&&b-Dd[0].timestamp>=c){var d=Dd.shift().iframeElement;Qa(d);P.finest("iframe removed")}Ed=window.setTimeout(Gd,1000)},Gd=function(){Fd()}}X.prototype.g=3;X.prototype.connect=function(){this.send("tp","SETUP")};X.prototype.H=function(a){if(a=="SETUP"){this.send("tp",O);this.a.m()}else a==O&&this.a.m()};X.prototype.send=function(a,b){if(G){var c=document.createElement("div");c.innerHTML='<iframe onload="this.xpcOnload()"></iframe>';var d=c.childNodes[0];d.xpcOnload=Hd}else{var d=document.createElement("iframe");H?Dd.push({timestamp:E(),iframeElement:d}):td(d,"load",Hd)}var e=d.style;e.visibility="hidden";e.width=d.style.height="0px";e.position="absolute";var f=this.ic;f+="#"+this.a.name;if(this.Fb)f+=","+this.Fb;f+="|"+a+":"+encodeURIComponent(b);d.src=f;document.body.appendChild(d);P.finest("msg sent: "+f)};var Hd=function(){P.finest("iframe-load");Qa(this);this.xpcOnload=t};window.xpcRelay=function(a,b){var c=b.indexOf(":"),d=b.substring(0,c),e=b.substring(c+1);Tc[a].o(d,decodeURIComponent(e))};X.prototype.b=function(){X.q.b.call(this);H&&Fd(0)};var Y=function(a){this.a=a};F(Y,Q);Y.prototype.g=1;var Id=m,Kd=function(){if(!Id){td(C(window.postMessage)?window:document,"message",Jd,m,Y);Id=j}},Jd=function(a){var b=a.mb().data,c=b.indexOf("|"),d=b.indexOf(":");if(c==-1||d==-1)return;var e=b.substring(0,c),f=b.substring(c+1,d),g=b.substring(d+1),i=Tc[e];i?i.o(f,g):P.severe('error delivering msg: no channel named "'+e+'"')};Y.prototype.H=function(a){switch(a){case "SETUP":this.send("tp",O);case O:this.a.m();break}};Y.prototype.connect=function(){Kd();this.send("tp","SETUP")};Y.prototype.send=function(a,b){var c=this.a.f;if(!c){P.fine("send(): window not ready");return}var d=C(window.postMessage)?c:c.document;this.send=function(e,f){d.postMessage(this.a.name+"|"+e+":"+f,"*")};this.send(a,b)};Y.prototype.b=function(){Y.q.b.call(this);vd(document,"message",this.lc,m,this)};var Z=function(a){this.a=a;this.Ra=a.at||"";this.Mb=a.rat||"";Ld();this[Md]=this.L;this[Nd]=this.$a};F(Z,Q);var Od="GRPC____NIXVBS_wrapper",Pd="GRPC____NIXVBS_get_wrapper",Md="GRPC____NIXJS_handle_message",Nd="GRPC____NIXJS_create_channel",Qd="GRPC____NIXVBS_container",Ld=function(){if(window.nix_setup_complete)return;var a="Class "+Od+"\n Private m_Transport\nPrivate m_Auth\nPublic Sub SetTransport(transport)\nIf isEmpty(m_Transport) Then\nSet m_Transport = transport\nEnd If\nEnd Sub\nPublic Sub SetAuth(auth)\nIf isEmpty(m_Auth) Then\nm_Auth = auth\nEnd If\nEnd Sub\nPublic Function GetAuthToken()\n GetAuthToken = m_Auth\nEnd Function\nPublic Sub SendMessage(service, payload)\n Call m_Transport."+Md+"(service, payload)\nEnd Sub\nPublic Sub CreateChannel(channel)\n Call m_Transport."+Nd+"(channel)\nEnd Sub\nPublic Sub "+Qd+"()\n End Sub\nEnd Class\n Function "+Pd+"(transport, auth)\nDim wrap\nSet wrap = New "+Od+"\nwrap.SetTransport transport\nwrap.SetAuth auth\nSet "+Pd+" = wrap\nEnd Function";try{window.execScript(a,"vbscript");window.nix_setup_complete=j}catch(b){P.severe("exception caught while attempting global setup: "+b)}};Z.prototype.g=6;Z.prototype.n=0;Z.prototype.J=1;Z.prototype.z=m;Z.prototype.l=t;Z.prototype.connect=function(){this.aa=window.parent==this.a.f?this.J:this.n;this.aa==this.n?this.ia():this.ha()};Z.prototype.ia=function(){if(this.z)return;var a=this.a.w;try{a.contentWindow.opener=window[Pd](this,this.Ra);this.z=j}catch(b){P.severe("exception caught while attempting setup: "+b)}this.z||window.setTimeout(D(this.ia,this),100)};Z.prototype.ha=function(){if(this.z)return;try{var a=window.opener;if(a&&Qd in a){this.l=a;var b=this.l.GetAuthToken();if(b!=this.Mb){P.severe("Invalid auth token from other party");return}this.l.CreateChannel(window[Pd](this,this.Ra));this.z=j;this.a.m()}}catch(c){P.severe("exception caught while attempting setup: "+c);return}this.z||window.setTimeout(D(this.ha,this),100)};Z.prototype.$a=function(a){if(typeof a!="unknown"||!(Qd in a))P.severe("Invalid NIX channel given to createChannel_");this.l=a;var b=this.l.GetAuthToken();if(b!=this.Mb){P.severe("Invalid auth token from other party");return}this.a.m()};Z.prototype.L=function(a,b){function c(){this.a.o(a,b)}window.setTimeout(D(c,this),1)};Z.prototype.send=function(a,b){typeof this.l!=="unknown"&&P.severe("NIX channel not connected");this.l.SendMessage(a,b)};Z.prototype.b=function(){Z.q.b.call(this);this.l=t};var $=function(a){this.c=a;this.name=this.c.cn||Vc(10);this.Ja={};Tc[this.name]=this;td(window,"unload",Rd);P.info("CrossPageChannel created: "+this.name)};F($,J);$.prototype.d=t;$.prototype.ea=1;$.prototype.k=function(){return this.ea==2};$.prototype.f=t;$.prototype.w=t;$.prototype.La=function(a){this.f=a};$.prototype.bb=function(){if(this.d)return;if(!this.c.tp)if(C(document.postMessage)||C(window.postMessage))this.c.tp=1;else if(Xb)this.c.tp=2;else if(G&&this.c.pru)this.c.tp=3;else if(G)this.c.tp=6;else if(this.c.lpu&&this.c.ppu)this.c.tp=4;switch(this.c.tp){case 1:this.d=new Y(this);break;case 6:this.d=new Z(this);break;case 2:this.d=new R(this);break;case 3:this.d=new X(this);break;case 4:this.d=new S(this);break}if(this.d)P.info("Transport created: "+this.d.V());else throw Error("CrossPageChannel: No suitable transport found!");};$.prototype.db=m;$.prototype.Ya=m;$.prototype.connect=function(a){this.dc=a;if(this.db){this.Ya=j;return}if(this.c.ifrid)this.w=na(this.c.ifrid);if(this.w){var b=this.w.contentWindow;b||(b=window.frames[this.c.ifrid]);this.La(b)}if(!this.f)if(window==top)throw Error("CrossPageChannel: Can't connect, peer window-object not set.");else this.La(window.parent);this.bb();this.d.connect()};$.prototype.close=function(){if(!this.k())return;this.ea=3;this.d.dispose();this.d=t;P.info('Channel "'+this.name+'" closed')};$.prototype.m=function(){if(this.k())return;this.ea=2;P.info('Channel "'+this.name+'" connected');this.dc()};$.prototype.Eb=function(){P.info("Transport Error");this.close()};$.prototype.Lb=function(a,b,c){this.Ja[a]={name:a,callback:b,jsonEncoded:!!c}};$.prototype.send=function(a,b){if(!this.k()){P.severe("Can't send. Channel not connected.");return}if(this.f.closed){P.severe("Peer has disappeared.");this.close();return}if(qb(b))b=xc(b);this.d.send(a,b)};$.prototype.o=function(a,b){if(!a||a=="tp")this.d.H(b);else if(this.k()){var c=this.Ja[a];if(c){if(c.jsonEncoded)try{b=uc(b)}catch(d){P.info("Error parsing JSON-encoded payload.");return}c.callback(b)}else P.info('CrossPageChannel::deliver_(): No such service: "'+a+'" (payload: '+b+")")}else P.info("CrossPageChannel::deliver_(): Not connected.")};$.prototype.b=function(){$.q.b.call(this);this.close();this.f=t;this.w=t;delete this.Ja;Tc[this.name]=t};var Rd=function(){for(var a in Tc){var b=Tc[a];b&&b.dispose()}};var Sd=Rc("ExpansionUtil");Sd.ga(function(a){ma("API: "+a.xa(),"console")});var Td=Rc("goog.net.xpc");Td.ga(function(a){ma("XPC: "+a.xa(),"console")});var Ud=function(a){var b=a||document.location.protocol+"//"+document.location.host;return b+"/favicon.ico"};var z=function(a,b){this.s=b.width;this.r=b.height;this.Ta=Vc(10);this.hc=this.qb(a,document);this.e=b;this.e.src=this.yb(document,a);this.vb(this.sb(document))};z.prototype.yb=function(a,b){return b+(b.indexOf("?")==-1?"?":"&")+"w="+this.s+"&h="+this.r+"&xpc="+this.Ta+"&p="+escape(a.location.protocol+"//"+a.location.host)};z.prototype.sb=function(){var a={};a.ifrid=this.e.id;a.pu=this.e.src;a.cn=this.Ta;a.ppu=Ud(this.hc);a.lpu=Ud();return a};z.prototype.vb=function(a){this.a=new $(a);this.a.Lb("expandable_ad",D(this.L,this));this.a.connect(function(){})};z.prototype.qb=function(a,b){var c=a.indexOf("//"),d=c>0,e=d?a.substring(0,c):b.location.protocol,f=d?a.substring(c+2):b.location.host,g=f.indexOf("/");if(d&&g>0)f=f.substring(0,g);return e+"//"+f};z.prototype.L=function(a){Sd.info("handleMessage("+a+")");var b=a.split("_"),c=b[0];if(c=="expand")this.ub(b);else c=="collapse"?this.tb():Sd.info("ExpandableAdSlot.callback(): unknown message received")};z.prototype.Fa=function(a){this.a.send("expandable_ad",a)};z.prototype.ub=function(a){var b,c;for(var d in a){var e=a[d].charAt(0);if(e=="w")b=parseInt(a[d].substring(1),10);else if(e=="h")c=parseInt(a[d].substring(1),10)}var f=this.fb(b,c);this.jb(b,c,f);this.Fa("ok_expand_w"+b+"_h"+c+"_d"+f)};z.prototype.tb=function(){this.Xa();this.Fa("ok_collapse_w"+this.s+"_h"+this.r)};z.prototype.Xa=function(){this.e.style.width=this.s+"px";this.e.style.height=this.r+"px";this.e.style.left="0";this.e.style.top="0";this.e.style.zIndex=999};z.prototype.jb=function(a,b,c){this.e.style.position="absolute";this.e.style.width=a+"px";this.e.style.height=b+"px";this.e.style.zIndex=9999;if(a>this.s&&(c==0||c==3))this.e.style.left="-"+(a-this.s)+"px";if(b>this.r&&(c==1||c==0))this.e.style.top="-"+(b-this.r)+"px"};z.prototype.fb=function(a,b){var c=sc(this.e),d=jc(window),e=a-this.s,f=b-this.r,g=c.y,i=f>g,k=d.height-(c.y+this.r),l=i||k>=g,o=c.x,q=e>o,r=d.width-(c.x+this.s),y=q||r>=o,M=0;if(l&&y)M=2;else if(l&&!y)M=3;else if(!l&&y)M=1;else if(!l&&!y)M=0;return M};xb("ExpandableAdSlot",z);var Ca=0;var Xa={};var gb={};gb["ad.yieldmanager.com"]=j;window.google_render_ad=Pa;var ib={google:1,googlegroups:1,gmail:1,googlemail:1,orkut:1,googleimages:1,googleprint:1};Za();Va(Ta);jb(window,document,0.0010);var Vd="script";document.write("<"+Vd+"> window.google_render_ad(); </"+Vd+">");})()

⌨️ 快捷键说明

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