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

1 line
10 KiB
JavaScript
Raw Normal View History

var nt={qt:function(rt){if(rt.contentDocument){return rt.contentDocument;} else if(rt.contentWindow){return rt.contentWindow.document;} else if(rt.document){return rt.document;} else{return null;} } ,st:function(rt){var tt=this.qt(rt);tt.open();tt.write("<h\164\155l\076\u003c\150\145\141d\u003e");tt.write("\074l\151\u006e\u006b re\u006c\u003d\"\u0073ty\154\u0065\u0073\u0068e\u0065\164\"\040t\171\u0070\145\u003d\"\164e\170\164\057c\u0073\u0073\" m\u0065\u0064\u0069a\075\"\141\u006c\154\"\040\150\162ef\075\""+ut.ht+"/\143\u0068at.cs\u0073\"\040\u002f\u003e");tt.write("<\u002fhe\141d\076<\142\157\144y\u0020bgc\u006flor='\043\106F\106F\u0046F'\u0020text\075'#\u00300000\060' \u006ci\156\153\075'#\u004328\064\u0030\060' \u0076lin\153='#C2840\u0030' al\u0069\156k\075'#\u0043\062840\u0030'\040m\u0061\u0072g\151\156\u0077\u0069\u0064\164\150\u003d'0'\040ma\162\147inh\u0065ig\u0068t='0'\040lef\u0074ma\u0072\u0067\u0069\u006e='0' \u0072ig\150tma\162\u0067in='\060'\040\164o\160m\141\u0072gi\156='0' bot\u0074\u006f\155\155argi\156\u003d'\u0030'>");tt.write("\u003c\u0074\u0061\142l\145\040wi\144th\075'1\u00300\045'\040\u0063el\u006csp\u0061\u0063ing='\060' ce\u006c\154p\u0061\144\144\u0069ng='0'\040b\u006fr\144\145\162\075'\u0030'>\u003ct\162\076\u003ctd\u0020\166al\u0069\u0067\156\u003d'to\u0070'\040cl\141\163s='mes\163ag\u0065'\040\151\u0064\075'\u0063\u006f\156\u0074e\156t'\u003e\u003c\u002f\u0074d></\164r\u003e\u003c/\u0074\141\u0062\u006ce><\u0061\040\151\u0064\u003d'\u0062o\u0074t\u006f\u006d'/\076");tt.write("</\u0062ody\u003e\u003c\057\150\u0074\155\154\076");tt.close();rt.onload=function(){if(rt.it){nt.qt(rt).getElementById('conte\u006e\164').innerHTML+=rt.it;nt.jt(rt);} } ;} ,kt:function(rt,lt){var ot=this.qt(rt).getElementById('\u0063\157\u006e\u0074\u0065n\164');if(ot==null){if(!rt.it)rt.it="";rt.it+=lt;} else{ot.innerHTML+=lt;} } ,jt:function(rt){var pt=this.qt(rt).getElementById('\142\157\164\164\157m');if(myAgent=='\157p\145r\141'){rt.contentWindow.scrollTo(0,this.qt(rt).getElementById('\143on\u0074\u0065\156t').clientHeight);} else if(pt)pt.scrollIntoView(false);} } ;sq.dt=mn.nn();mn.sn(sq.dt,sq.lq,{qn:function(pq){this.oq(pq);this.pq.onComplete=this.et.on(this);this.pq.jr=this.ft.on(this);this.pq.hr=this._q.on(this);this.pq.timeout=011610;this.gt={} ;this.frequency=(this.pq.frequency||2);this.at=0;this.bt=true;this.ct=true;this.vt=true;this.wt=this.pq.xt!=null;nt.st(this.pq.yt);if(this.pq.xt){this.pq.xt.onkeydown=this.zt.on(this);this.pq.xt.onfocus=(function(){this.vt=true;} ).on(this);this.pq.xt.onblur=(function(){this.vt=false;} ).on(this)} this.$t();} ,ft:function(_t,mu){this.nu("\157\146\146\154i\u006ee,\u0020r\145\u0063o\156\156\145\u0063t\u0069\156\u0067");this.qu();this.ru=setTimeout(this.$t.on(this),(783+217));} ,_q:function(_t){this.nu("\u0074i\u006d\u0065\u006fut,\040\u0072ec\u006f\156\u006e\145cting");this.qu();this.ru=setTimeout(this.$t.on(this),(617+383));} ,su:function(tu){this.pq.fq='a\143\u0074\u003d'+tu+'\u0026\u0074\u0068\u0072\u0065a\u0064='+(this.pq.threadid||0)+'\046to\u006be\156='+(this.pq.token||0)+'\u0026l\141\u0073\164i\u0064='+(this.pq.uu||0);if(this.pq.user)this.pq.fq+="&u\u0073er=t\162ue";if(tu=='r\145\146\162es\u0068'&&this.pq.xt&&this.pq.xt.value!='')this.pq.fq+="&typ\u0065d\u003d1";} ,hu:function(iu){if(this.pq.xt)this.pq.xt.disabled=!iu;} ,qu:function(){this.hu(true);if(this.gt.pq)this.gt.pq.onComplete=undefined;clearTimeout(this.ru);} ,$t:function(){this.su("\162efr\u0065s\u0068");this.gt=new sq.vq(this.pq.servl,this.pq);} ,et:function(hq){try{this.hu(true);this.bt=true;var ju=sq.uq(hq);if(ju&&ju.tagName=='\u0074\u0068\162ead'){this.ku(ju);} else{this.lu(hq,ju,'\162\145\u0066r\145\163\u0068 \u006dess\141\u0067e\163\040\146ailed');} } catch(e){} this.ct=false;this.ru=setTimeout(this.$t.on(this),this.frequency*0x3e8);} ,ou:function(pu){if(pu==""||!this.bt){return;} this.bt=false;this.qu();this.ct=true;this.su("po\163\u0074");var du={} .un(this.pq);du.fq+="\046m\u0065s\163\u0061\147\u0065="+encodeURIComponent(pu);du.onComplete=(function(eu){this.et(eu);if(this.pq.xt){this.pq.xt.value='';