MediaWiki:Common.js: различия между версиями

>Edward Chernenko
отключил счётчик для тестов
>Edward Chernenko
вернул счётчик Рамблера в своей версии
Строка 2: Строка 2:


/* Счётчик Рамблера */
/* Счётчик Рамблера */
var ramblerURL = "http://counter.rambler.ru/top100.scn?2206359" +
"&rn=" + Math.round(Math.random() * 2147483647) +
"&rf=" + encodeURIComponent(document.referrer) +
"&pt=" + encodeURIComponent(document.title.split(" — ")[0]) +
"&en=" + (document.characterSet || document.charset || "") +
"&fv=" +
"&ja=" + (navigator.javaEnabled() ? 1 : 0) +
"&cd=" + (screen ? screen.colorDepth + "-bit" : "") +
"&sr=" + (screen ? screen.width + "x" + screen.height : "") +
"&la=" + (navigator && navigator.language ? navigator.language : "") +
"&tz=" + (new Date).getTimezoneOffset();
document.write('<div id="top100Counter"><img src="' + ramblerURL + '" /></div>');
/* /Счётчик Рамблера */


var xhrSummaries, xhrReasons;
var xhrSummaries, xhrReasons;