tray/src/messenger/webim/js/chat.js

1 line
9.8 KiB
JavaScript
Raw Normal View History

var xs={ys:function(zs){if(zs.contentDocument){return zs.contentDocument;} else if(zs.contentWindow){return zs.contentWindow.document;} else if(zs.document){return zs.document;} else{return null;} } ,$s:function(zs){var _s=this.ys(zs);_s.open();_s.write("\u003ch\164\155\154\076\074he\141d\076");_s.write("\074\u006cin\u006b\040r\145l\075\"\u0073t\171\154\u0065s\u0068\u0065e\u0074\"\u0020\164\u0079pe\u003d\"t\145\u0078t\u002f\u0063\163\u0073\"\u0020m\u0065dia\u003d\"a\u006cl\" hre\146\u003d\""+mt.nt+"/\u0063ha\164.c\163\u0073\"\040/>");_s.write("\074\u002f\150\145a\u0064\u003e\u003cb\157d\u0079\040\142\147\u0063o\154o\162\u003d'\043\u0046\u0046FFF\106'\u0020\u0074\145\170\u0074\075'\u00230\060\u00300\060\060' l\151n\u006b\u003d'\043C\u0032\u0038\064\0600' \u0076\u006c\u0069\u006ek\u003d'#\u0043\062\u0038\064\u00300'\040\u0061lin\153='\043\1032\070400'\u0020m\u0061\u0072\u0067inw\151\144\u0074h\u003d'\u0030' m\u0061\u0072\u0067i\156\u0068\u0065\151\u0067ht\u003d'0' l\u0065f\164\155a\162\u0067in='\060'\040ri\147\u0068\u0074\155\u0061\162\u0067\u0069n\u003d'\060' \164o\160\155a\u0072\147\151n='\060'\040\u0062ot\164omm\141\u0072g\151n='0'\u003e");_s.write("\u003c\164ab\154\145 \u0077i\u0064\164\150='\061\u0030\060%' c\u0065\u006clspac\u0069n\u0067\u003d'0' \u0063\u0065\154\u006c\160\u0061ddi\156\u0067='\u0030'\040\142\157r\144\145\u0072\075'0'\u003e\u003ct\u0072\u003e\u003ct\144 v\141lig\156='\164\u006fp'\040cl\u0061\u0073s\u003d'\u006d\145s\u0073\141g\145' i\144\075'\u0063on\u0074\u0065nt'\u003e<\057\164\144\076\u003c\u002ftr>\u003c\057\164abl\145>\u003c\141 \151d\u003d'b\157\u0074\164om'\u002f>");_s.write("\074/body>\u003c/h\u0074\155l\076");_s.close();zs.onload=function(){if(zs.qt){xs.ys(zs).getElementById('c\u006f\156ten\u0074').innerHTML+=zs.qt;xs.rt(zs);} } ;} ,st:function(zs,tt){var ut=this.ys(zs).getElementById('\143\157\u006e\u0074e\156\164');if(ut==null){if(!zs.qt)zs.qt="";zs.qt+=tt;} else{ut.innerHTML+=tt;} } ,rt:function(zs){var ht=this.ys(zs).getElementById('\u0062\u006f\u0074t\157m');if(myAgent=='\u006fp\u0065ra'){zs.contentWindow.scrollTo(0,this.ys(zs).getElementById('\143\157nte\u006et').clientHeight);} else if(ht)ht.scrollIntoView(false);} } ;sq.it=mn.nn();mn.sn(sq.it,sq.lq,{qn:function(pq){this.oq(pq);this.pq.onComplete=this.jt.on(this);this.pq.jr=this.kt.on(this);this.pq.hr=this._q.on(this);this.pq.timeout=(4248+752);this.lt={} ;this.frequency=(this.pq.frequency||2);this.ot=0;this.pt=true;xs.$s(this.pq.dt);if(this.pq.et){this.pq.et.onkeydown=this.ft.on(this);this.pq.et.onfocus=(function(){this.gt=true;} ).on(this);this.pq.et.onblur=(function(){this.gt=false;} ).on(this)} this.at();} ,kt:function(bt,ct){this.vt("offl\u0069n\145,\040\u0072\u0065\u0063\u006f\156\156\145c\u0074in\147");this.wt();this.xt=setTimeout(this.at.on(this),(932+68));} ,_q:function(bt){this.vt("t\151\u006deo\165\u0074,\040re\143o\156\u006eec\164in\147");this.wt();this.xt=setTimeout(this.at.on(this),(888+112));} ,yt:function(zt){this.pq.fq='\141ct\075'+zt+'\046threa\144\u003d'+(this.pq.threadid||-1)+'\u0026\u0074\u006f\u006b\u0065\156\075'+(this.pq.token||0)+'&la\163tid='+(this.pq.$t||0);if(this.pq.user)this.pq.fq+="\u0026u\163\145\162\075\u0074ru\u0065";if(zt=='\162ef\162e\163h'&&this.pq.et&&this.pq.et.value!='')this.pq.fq+="&t\u0079\160e\u0064\075\u0031";} ,_t:function(mu){if(this.pq.et)this.pq.et.disabled=!mu;} ,wt:function(){this._t(true);if(this.lt.pq)this.lt.pq.onComplete=undefined;clearTimeout(this.xt);} ,at:function(){this.yt("r\145\146r\145\163\u0068");this.lt=new sq.vq(this.pq.servl,this.pq);} ,jt:function(hq){try{this._t(true);this.pt=true;var nu=sq.uq(hq);if(nu&&nu.tagName=='\164\150\162\u0065ad'){this.qu(nu);} else{this.ru(hq,nu,'\u0072e\146\u0072e\163h \u006d\145ss\u0061\u0067es\u0020\u0066\u0061\u0069\154e\u0064');} } catch(e){} this.xt=setTimeout(this.at.on(this),this.frequency*01750);} ,su:function(tu){if(tu==""||!this.pt){return;} this.pt=false;this.wt();this.yt("post");var uu={} .un(this.pq);uu.fq+="\u0026mes\163ag\145="+encodeURIComponent(tu);uu.onComplete=(function(hu){this.jt(hu);if(this.pq.et){this.pq.et.value='';th