battles/js/CombatsUI.js

1 line
3.9 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(function(){function m(){var b={id:341269,t:50,j:true,js:13,rand:Math.random(),r:escape(f.referrer)},a;if(a=screen){b.s=[a.width,a.height].join("*");b.d=a.colorDepth||a.pixelDepth}a=[];for(var c in b)a.push(c+"="+b[c]);c=f.createElement("div");var e=f.createElement("a");e.setAttribute("target","_blank");e.setAttribute("href","http://top.mail.ru/jump?from="+b.id);b=f.createElement("img");b.setAttribute("src","http://top.list.ru/counter?"+a.join(";"));b.setAttribute("title","Рейтинг@Mail.ru");b.setAttribute("border",0);b.setAttribute("height",31);b.setAttribute("width",88);e.appendChild(b);c.appendChild(e);return c}function n(b){b=b+108E5;var a=new Date(b),c=a.getUTCMonth();if(c>2&&c<9)return b+36E5;if(c<2||c>9)return b;var e=a.getUTCDate();c=c===2;if(e<=24)return c?b:b+36E5;var d=a.getUTCDay();if(d===0)return a.getUTCHours()>=2?c?b+36E5:b:c?b:b+36E5;return e-d<=24?c?b:b+36E5:c?b+36E5:b}function o(b){b=new Date(b);var a=b.getUTCMonth()+1;if(a<10)a="0"+a;var c=b.getUTCDate();if(c<10)c="0"+c;var e=b.getUTCHours();if(e<10)e="0"+e;var d=b.getUTCMinutes();if(d<10)d="0"+d;return b.getUTCFullYear()+"."+a+"."+c+" "+e+":"+d}function p(b){var a=q.ru,c=f.createElement("div"),e,d;(e=c.style).display="inline-block";e.whiteSpace="pre";if(e=b.align){var h;d=f.createElement("a");d.target="_blank";d.href="http://capitalcity.combats.com/encicl/"+((h=parseInt(e))===50?"alchemist":"alignment")+".html";if(a=parseFloat(e)===7?a["7="]:a[h])d.title=a;a=f.createElement("img");a.src="http://img.combats.ru/i/align"+e+".gif";a.width=12;a.height=15;a.border=0;d.appendChild(a);c.appendChild(d)}if(b.hasOwnProperty("clan")){e=b.clan;d=f.createElement("a");d.target="_blank";d.href="/clans_inf.pl?"+e;d.title="Информация о клане "+e;a=f.createElement("img");a.src="http://img.combats.ru/i/klan/"+e+".gif";a.width=24;a.height=15;a.border=0;d.appendChild(a);c.appendChild(d)}d=f.createElement("b");d.appendChild(f.createTextNode(e=b.login));c.appendChild(d);c.appendChild(f.createTextNode(" ["+b.level+"]"));d=f.createElement("a");d.target="_blank";d.href="/inf.pl?"+b.id;d.title="Информация о "+e;a=f.createElement("img");a.src="http://img.combats.ru/i/inf.gif";a.width=12;a.height=11;a.border=0;d.appendChild(a);c.appendChild(d);return c}function r(b,a,c){a=a;i||(i=j());g||(g=new i);switch(b){case "get":case "GET":if(c!=undefined)a+=c;g.open("GET",a,false);g.send();break;case "post":case "POST":g.open("POST",a,false);g.send(c);break}if((b=g.status)!==200)return parseInt(b,10);else{var e;try{var d=g.responseText;e=d.substring(0,2)==="//"?k(d.substring(2)):d=="undefined"?void 0:k(d)}catch(h){e=500}return e}}var f=document,l=window,q={ru:{"1":"Белое братство","2":"Хаос","3":"Темное братство","7=":"Нейтральное братство","7":"Орден Очищения Стихий","50":"Алхимики"}},k=typeof JSON==="object"&&JSON.parse?JSON.parse:function(b){return eval("("+b+")")},i,g,j=function(){j=undefined;var b;if(b=l.XMLHttpRequest)return b;if(b=l.ActiveXObject){var a;try{a=new b("MSxml2.XMLHTTP.6.0")}catch(c){}if(a){a=null;return function(){return new b("MSxml2.XMLHTTP.6.0")}}try{a=new b("MSxml2.XMLHTTP.3.0")}catch(e){}if(a){a=null;return function(){return new b("MSxml2.XMLHTTP.3.0")}}try{a=new b("MSxml2.XMLHTTP")}catch(d){}if(a){a=null;return function(){return new b("MSxml2.XMLHTTP")}}try{a=new b("Microsoft.XMLHTTP")}catch(h){}if(a){a=null;return function(){return new b("Microsoft.XMLHTTP")}}}};(function(b){var a=b.CombatsUI;a||(b.CombatsUI=a={});a.CounterMailRu=m;a.UTCMsec2Moscow=n;a.UTCMsec2PlainText=o;a.UserLink=p;a.SyncJSON=r;this.DLoad&&(new this.DLoad.pkg("CombatsUI")).use("LocalText").complete()})(this)})()