Изменения

Перейти к навигации Перейти к поиску
обновление
Строка 1: Строка 1: −
/*  Размещённый здесь код JavaScript будет загружен всем читателям
+
/*
 +
*  Размещённый здесь код JavaScript будет загружен всем читателям
 
  *  (не обязательно участникам проекта) при обращении к какой-либо странице.
 
  *  (не обязательно участникам проекта) при обращении к какой-либо странице.
  *
+
  */
  *  Импортировать скрипты из [[MediaWiki:jQuery.js]] не нужно:
+
 
  *  их подгружает расширение [[jQuery для MediaWiki]].
+
/*
*
+
  * jQuery plugins:
Когда всё подгрузится, задаём в Традиции плавную прокрутку по ссылкам из оглавлений.
+
  */
 +
// Underscore.js 1.3.1
 +
// (c) 2009-2012 Jeremy Ashkenas, DocumentCloud Inc.
 +
// Underscore is freely distributable under the MIT license.
 +
// Portions of Underscore are inspired or borrowed from Prototype,
 +
// Oliver Steele's Functional, and John Resig's Micro-Templating.
 +
// For all details and documentation:
 +
// http://documentcloud.github.com/underscore
 +
(function(){function q(a,c,d){if(a===c)return a!==0||1/a==1/c;if(a==null||c==null)return a===c;if(a._chain)a=a._wrapped;if(c._chain)c=c._wrapped;if(a.isEqual&&b.isFunction(a.isEqual))return a.isEqual(c);if(c.isEqual&&b.isFunction(c.isEqual))return c.isEqual(a);var e=l.call(a);if(e!=l.call(c))return false;switch(e){case "[object String]":return a==String(c);case "[object Number]":return a!=+a?c!=+c:a==0?1/a==1/c:a==+c;case "[object Date]":case "[object Boolean]":return+a==+c;case "[object RegExp]":return a.source==
 +
c.source&&a.global==c.global&&a.multiline==c.multiline&&a.ignoreCase==c.ignoreCase}if(typeof a!="object"||typeof c!="object")return false;for(var f=d.length;f--;)if(d[f]==a)return true;d.push(a);var f=0,g=true;if(e=="[object Array]"){if(f=a.length,g=f==c.length)for(;f--;)if(!(g=f in a==f in c&&q(a[f],c[f],d)))break}else{if("constructor"in a!="constructor"in c||a.constructor!=c.constructor)return false;for(var h in a)if(b.has(a,h)&&(f++,!(g=b.has(c,h)&&q(a[h],c[h],d))))break;if(g){for(h in c)if(b.has(c,
 +
h)&&!f--)break;g=!f}}d.pop();return g}var r=this,G=r._,n={},k=Array.prototype,o=Object.prototype,i=k.slice,H=k.unshift,l=o.toString,I=o.hasOwnProperty,w=k.forEach,x=k.map,y=k.reduce,z=k.reduceRight,A=k.filter,B=k.every,C=k.some,p=k.indexOf,D=k.lastIndexOf,o=Array.isArray,J=Object.keys,s=Function.prototype.bind,b=function(a){return new m(a)};if(typeof exports!=="undefined"){if(typeof module!=="undefined"&&module.exports)exports=module.exports=b;exports._=b}else r._=b;b.VERSION="1.3.1";var j=b.each=
 +
b.forEach=function(a,c,d){if(a!=null)if(w&&a.forEach===w)a.forEach(c,d);else if(a.length===+a.length)for(var e=0,f=a.length;e<f;e++){if(e in a&&c.call(d,a[e],e,a)===n)break}else for(e in a)if(b.has(a,e)&&c.call(d,a[e],e,a)===n)break};b.map=b.collect=function(a,c,b){var e=[];if(a==null)return e;if(x&&a.map===x)return a.map(c,b);j(a,function(a,g,h){e[e.length]=c.call(b,a,g,h)});if(a.length===+a.length)e.length=a.length;return e};b.reduce=b.foldl=b.inject=function(a,c,d,e){var f=arguments.length>2;a==
 +
null&&(a=[]);if(y&&a.reduce===y)return e&&(c=b.bind(c,e)),f?a.reduce(c,d):a.reduce(c);j(a,function(a,b,i){f?d=c.call(e,d,a,b,i):(d=a,f=true)});if(!f)throw new TypeError("Reduce of empty array with no initial value");return d};b.reduceRight=b.foldr=function(a,c,d,e){var f=arguments.length>2;a==null&&(a=[]);if(z&&a.reduceRight===z)return e&&(c=b.bind(c,e)),f?a.reduceRight(c,d):a.reduceRight(c);var g=b.toArray(a).reverse();e&&!f&&(c=b.bind(c,e));return f?b.reduce(g,c,d,e):b.reduce(g,c)};b.find=b.detect=
 +
function(a,c,b){var e;E(a,function(a,g,h){if(c.call(b,a,g,h))return e=a,true});return e};b.filter=b.select=function(a,c,b){var e=[];if(a==null)return e;if(A&&a.filter===A)return a.filter(c,b);j(a,function(a,g,h){c.call(b,a,g,h)&&(e[e.length]=a)});return e};b.reject=function(a,c,b){var e=[];if(a==null)return e;j(a,function(a,g,h){c.call(b,a,g,h)||(e[e.length]=a)});return e};b.every=b.all=function(a,c,b){var e=true;if(a==null)return e;if(B&&a.every===B)return a.every(c,b);j(a,function(a,g,h){if(!(e=
 +
e&&c.call(b,a,g,h)))return n});return e};var E=b.some=b.any=function(a,c,d){c||(c=b.identity);var e=false;if(a==null)return e;if(C&&a.some===C)return a.some(c,d);j(a,function(a,b,h){if(e||(e=c.call(d,a,b,h)))return n});return!!e};b.include=b.contains=function(a,c){var b=false;if(a==null)return b;return p&&a.indexOf===p?a.indexOf(c)!=-1:b=E(a,function(a){return a===c})};b.invoke=function(a,c){var d=i.call(arguments,2);return b.map(a,function(a){return(b.isFunction(c)?c||a:a[c]).apply(a,d)})};b.pluck=
 +
function(a,c){return b.map(a,function(a){return a[c]})};b.max=function(a,c,d){if(!c&&b.isArray(a))return Math.max.apply(Math,a);if(!c&&b.isEmpty(a))return-Infinity;var e={computed:-Infinity};j(a,function(a,b,h){b=c?c.call(d,a,b,h):a;b>=e.computed&&(e={value:a,computed:b})});return e.value};b.min=function(a,c,d){if(!c&&b.isArray(a))return Math.min.apply(Math,a);if(!c&&b.isEmpty(a))return Infinity;var e={computed:Infinity};j(a,function(a,b,h){b=c?c.call(d,a,b,h):a;b<e.computed&&(e={value:a,computed:b})});
 +
return e.value};b.shuffle=function(a){var b=[],d;j(a,function(a,f){f==0?b[0]=a:(d=Math.floor(Math.random()*(f+1)),b[f]=b[d],b[d]=a)});return b};b.sortBy=function(a,c,d){return b.pluck(b.map(a,function(a,b,g){return{value:a,criteria:c.call(d,a,b,g)}}).sort(function(a,b){var c=a.criteria,d=b.criteria;return c<d?-1:c>d?1:0}),"value")};b.groupBy=function(a,c){var d={},e=b.isFunction(c)?c:function(a){return a[c]};j(a,function(a,b){var c=e(a,b);(d[c]||(d[c]=[])).push(a)});return d};b.sortedIndex=function(a,
 +
c,d){d||(d=b.identity);for(var e=0,f=a.length;e<f;){var g=e+f>>1;d(a[g])<d(c)?e=g+1:f=g}return e};b.toArray=function(a){return!a?[]:a.toArray?a.toArray():b.isArray(a)?i.call(a):b.isArguments(a)?i.call(a):b.values(a)};b.size=function(a){return b.toArray(a).length};b.first=b.head=function(a,b,d){return b!=null&&!d?i.call(a,0,b):a[0]};b.initial=function(a,b,d){return i.call(a,0,a.length-(b==null||d?1:b))};b.last=function(a,b,d){return b!=null&&!d?i.call(a,Math.max(a.length-b,0)):a[a.length-1]};b.rest=
 +
b.tail=function(a,b,d){return i.call(a,b==null||d?1:b)};b.compact=function(a){return b.filter(a,function(a){return!!a})};b.flatten=function(a,c){return b.reduce(a,function(a,e){if(b.isArray(e))return a.concat(c?e:b.flatten(e));a[a.length]=e;return a},[])};b.without=function(a){return b.difference(a,i.call(arguments,1))};b.uniq=b.unique=function(a,c,d){var d=d?b.map(a,d):a,e=[];b.reduce(d,function(d,g,h){if(0==h||(c===true?b.last(d)!=g:!b.include(d,g)))d[d.length]=g,e[e.length]=a[h];return d},[]);
 +
return e};b.union=function(){return b.uniq(b.flatten(arguments,true))};b.intersection=b.intersect=function(a){var c=i.call(arguments,1);return b.filter(b.uniq(a),function(a){return b.every(c,function(c){return b.indexOf(c,a)>=0})})};b.difference=function(a){var c=b.flatten(i.call(arguments,1));return b.filter(a,function(a){return!b.include(c,a)})};b.zip=function(){for(var a=i.call(arguments),c=b.max(b.pluck(a,"length")),d=Array(c),e=0;e<c;e++)d[e]=b.pluck(a,""+e);return d};b.indexOf=function(a,c,
 +
d){if(a==null)return-1;var e;if(d)return d=b.sortedIndex(a,c),a[d]===c?d:-1;if(p&&a.indexOf===p)return a.indexOf(c);for(d=0,e=a.length;d<e;d++)if(d in a&&a[d]===c)return d;return-1};b.lastIndexOf=function(a,b){if(a==null)return-1;if(D&&a.lastIndexOf===D)return a.lastIndexOf(b);for(var d=a.length;d--;)if(d in a&&a[d]===b)return d;return-1};b.range=function(a,b,d){arguments.length<=1&&(b=a||0,a=0);for(var d=arguments[2]||1,e=Math.max(Math.ceil((b-a)/d),0),f=0,g=Array(e);f<e;)g[f++]=a,a+=d;return g};
 +
var F=function(){};b.bind=function(a,c){var d,e;if(a.bind===s&&s)return s.apply(a,i.call(arguments,1));if(!b.isFunction(a))throw new TypeError;e=i.call(arguments,2);return d=function(){if(!(this instanceof d))return a.apply(c,e.concat(i.call(arguments)));F.prototype=a.prototype;var b=new F,g=a.apply(b,e.concat(i.call(arguments)));return Object(g)===g?g:b}};b.bindAll=function(a){var c=i.call(arguments,1);c.length==0&&(c=b.functions(a));j(c,function(c){a[c]=b.bind(a[c],a)});return a};b.memoize=function(a,
 +
c){var d={};c||(c=b.identity);return function(){var e=c.apply(this,arguments);return b.has(d,e)?d[e]:d[e]=a.apply(this,arguments)}};b.delay=function(a,b){var d=i.call(arguments,2);return setTimeout(function(){return a.apply(a,d)},b)};b.defer=function(a){return b.delay.apply(b,[a,1].concat(i.call(arguments,1)))};b.throttle=function(a,c){var d,e,f,g,h,i=b.debounce(function(){h=g=false},c);return function(){d=this;e=arguments;var b;f||(f=setTimeout(function(){f=null;h&&a.apply(d,e);i()},c));g?h=true:
 +
a.apply(d,e);i();g=true}};b.debounce=function(a,b){var d;return function(){var e=this,f=arguments;clearTimeout(d);d=setTimeout(function(){d=null;a.apply(e,f)},b)}};b.once=function(a){var b=false,d;return function(){if(b)return d;b=true;return d=a.apply(this,arguments)}};b.wrap=function(a,b){return function(){var d=[a].concat(i.call(arguments,0));return b.apply(this,d)}};b.compose=function(){var a=arguments;return function(){for(var b=arguments,d=a.length-1;d>=0;d--)b=[a[d].apply(this,b)];return b[0]}};
 +
b.after=function(a,b){return a<=0?b():function(){if(--a<1)return b.apply(this,arguments)}};b.keys=J||function(a){if(a!==Object(a))throw new TypeError("Invalid object");var c=[],d;for(d in a)b.has(a,d)&&(c[c.length]=d);return c};b.values=function(a){return b.map(a,b.identity)};b.functions=b.methods=function(a){var c=[],d;for(d in a)b.isFunction(a[d])&&c.push(d);return c.sort()};b.extend=function(a){j(i.call(arguments,1),function(b){for(var d in b)a[d]=b[d]});return a};b.defaults=function(a){j(i.call(arguments,
 +
1),function(b){for(var d in b)a[d]==null&&(a[d]=b[d])});return a};b.clone=function(a){return!b.isObject(a)?a:b.isArray(a)?a.slice():b.extend({},a)};b.tap=function(a,b){b(a);return a};b.isEqual=function(a,b){return q(a,b,[])};b.isEmpty=function(a){if(b.isArray(a)||b.isString(a))return a.length===0;for(var c in a)if(b.has(a,c))return false;return true};b.isElement=function(a){return!!(a&&a.nodeType==1)};b.isArray=o||function(a){return l.call(a)=="[object Array]"};b.isObject=function(a){return a===Object(a)};
 +
b.isArguments=function(a){return l.call(a)=="[object Arguments]"};if(!b.isArguments(arguments))b.isArguments=function(a){return!(!a||!b.has(a,"callee"))};b.isFunction=function(a){return l.call(a)=="[object Function]"};b.isString=function(a){return l.call(a)=="[object String]"};b.isNumber=function(a){return l.call(a)=="[object Number]"};b.isNaN=function(a){return a!==a};b.isBoolean=function(a){return a===true||a===false||l.call(a)=="[object Boolean]"};b.isDate=function(a){return l.call(a)=="[object Date]"};
 +
b.isRegExp=function(a){return l.call(a)=="[object RegExp]"};b.isNull=function(a){return a===null};b.isUndefined=function(a){return a===void 0};b.has=function(a,b){return I.call(a,b)};b.noConflict=function(){r._=G;return this};b.identity=function(a){return a};b.times=function(a,b,d){for(var e=0;e<a;e++)b.call(d,e)};b.escape=function(a){return(""+a).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")};b.mixin=function(a){j(b.functions(a),
 +
function(c){K(c,b[c]=a[c])})};var L=0;b.uniqueId=function(a){var b=L++;return a?a+b:b};b.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var t=/.^/,u=function(a){return a.replace(/\\\\/g,"\\").replace(/\\'/g,"'")};b.template=function(a,c){var d=b.templateSettings,d="var __p=[],print=function(){__p.push.apply(__p,arguments);};with(obj||{}){__p.push('"+a.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(d.escape||t,function(a,b){return"',_.escape("+
 +
u(b)+"),'"}).replace(d.interpolate||t,function(a,b){return"',"+u(b)+",'"}).replace(d.evaluate||t,function(a,b){return"');"+u(b).replace(/[\r\n\t]/g," ")+";__p.push('"}).replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/\t/g,"\\t")+"');}return __p.join('');",e=new Function("obj","_",d);return c?e(c,b):function(a){return e.call(this,a,b)}};b.chain=function(a){return b(a).chain()};var m=function(a){this._wrapped=a};b.prototype=m.prototype;var v=function(a,c){return c?b(a).chain():a},K=function(a,c){m.prototype[a]=
 +
function(){var a=i.call(arguments);H.call(a,this._wrapped);return v(c.apply(b,a),this._chain)}};b.mixin(b);j("pop,push,reverse,shift,sort,splice,unshift".split(","),function(a){var b=k[a];m.prototype[a]=function(){var d=this._wrapped;b.apply(d,arguments);var e=d.length;(a=="shift"||a=="splice")&&e===0&&delete d[0];return v(d,this._chain)}});j(["concat","join","slice"],function(a){var b=k[a];m.prototype[a]=function(){return v(b.apply(this._wrapped,arguments),this._chain)}});m.prototype.chain=function(){this._chain=
 +
true;return this};m.prototype.value=function(){return this._wrapped}}).call(this);
 +
 
 +
/*  мицголовский плагин к Underscore для выявления неопределённых переменных по их имени  */
 +
_.isUndef = function(name){
 +
  return _.isUndefined(window[name]);
 +
};
 +
 
 +
/*  Underscore.string 2.0 http://epeli.github.com/underscore.string/dist/underscore.string.min.js */
 +
(function(k){var o=String.prototype.trim,l=function(a,b){for(var c=[];b>0;c[--b]=a);return c.join("")},d=function(a){return function(){for(var b=Array.prototype.slice.call(arguments),c=0;c<b.length;c++)b[c]=b[c]==null?"":""+b[c];return a.apply(null,b)}},m=function(){function a(a){return Object.prototype.toString.call(a).slice(8,-1).toLowerCase()}var b=function(){b.cache.hasOwnProperty(arguments[0])||(b.cache[arguments[0]]=b.parse(arguments[0]));return b.format.call(null,b.cache[arguments[0]],arguments)};
 +
b.format=function(b,n){var e=1,d=b.length,f="",j=[],h,i,g,k;for(h=0;h<d;h++)if(f=a(b[h]),f==="string")j.push(b[h]);else if(f==="array"){g=b[h];if(g[2]){f=n[e];for(i=0;i<g[2].length;i++){if(!f.hasOwnProperty(g[2][i]))throw m('[_.sprintf] property "%s" does not exist',g[2][i]);f=f[g[2][i]]}}else f=g[1]?n[g[1]]:n[e++];if(/[^s]/.test(g[8])&&a(f)!="number")throw m("[_.sprintf] expecting number but found %s",a(f));switch(g[8]){case "b":f=f.toString(2);break;case "c":f=String.fromCharCode(f);break;case "d":f=
 +
parseInt(f,10);break;case "e":f=g[7]?f.toExponential(g[7]):f.toExponential();break;case "f":f=g[7]?parseFloat(f).toFixed(g[7]):parseFloat(f);break;case "o":f=f.toString(8);break;case "s":f=(f=String(f))&&g[7]?f.substring(0,g[7]):f;break;case "u":f=Math.abs(f);break;case "x":f=f.toString(16);break;case "X":f=f.toString(16).toUpperCase()}f=/[def]/.test(g[8])&&g[3]&&f>=0?"+"+f:f;i=g[4]?g[4]=="0"?"0":g[4].charAt(1):" ";k=g[6]-String(f).length;i=g[6]?l(i,k):"";j.push(g[5]?f+i:i+f)}return j.join("")};b.cache=
 +
{};b.parse=function(a){for(var b=[],e=[],d=0;a;){if((b=/^[^\x25]+/.exec(a))!==null)e.push(b[0]);else if((b=/^\x25{2}/.exec(a))!==null)e.push("%");else if((b=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(a))!==null){if(b[2]){d|=1;var f=[],j=b[2],h=[];if((h=/^([a-z_][a-z_\d]*)/i.exec(j))!==null)for(f.push(h[1]);(j=j.substring(h[0].length))!=="";)if((h=/^\.([a-z_][a-z_\d]*)/i.exec(j))!==null)f.push(h[1]);else if((h=/^\[(\d+)\]/.exec(j))!==null)f.push(h[1]);
 +
else throw"[_.sprintf] huh?";else throw"[_.sprintf] huh?";b[2]=f}else d|=2;if(d===3)throw"[_.sprintf] mixing positional and named placeholders is not (yet) supported";e.push(b)}else throw"[_.sprintf] huh?";a=a.substring(b[0].length)}return e};return b}(),e={VERSION:"1.2.0",isBlank:d(function(a){return/^\s*$/.test(a)}),stripTags:d(function(a){return a.replace(/<\/?[^>]+>/ig,"")}),capitalize:d(function(a){return a.charAt(0).toUpperCase()+a.substring(1).toLowerCase()}),chop:d(function(a,b){for(var b=
 +
b*1||0||a.length,c=[],e=0;e<a.length;)c.push(a.slice(e,e+b)),e+=b;return c}),clean:d(function(a){return e.strip(a.replace(/\s+/g," "))}),count:d(function(a,b){for(var c=0,e,d=0;d<a.length;)e=a.indexOf(b,d),e>=0&&c++,d=d+(e>=0?e:0)+b.length;return c}),chars:d(function(a){return a.split("")}),escapeHTML:d(function(a){return a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}),unescapeHTML:d(function(a){return a.replace(/&lt;/g,"<").replace(/&gt;/g,
 +
">").replace(/&quot;/g,'"').replace(/&apos;/g,"'").replace(/&amp;/g,"&")}),escapeRegExp:d(function(a){return a.replace(/([-.*+?^${}()|[\]\/\\])/g,"\\$1")}),insert:d(function(a,b,c){a=a.split("");a.splice(b*1||0,0,c);return a.join("")}),include:d(function(a,b){return a.indexOf(b)!==-1}),join:d(function(a){var b=Array.prototype.slice.call(arguments);return b.join(b.shift())}),lines:d(function(a){return a.split("\n")}),reverse:d(function(a){return Array.prototype.reverse.apply(String(a).split("")).join("")}),
 +
splice:d(function(a,b,c,e){a=a.split("");a.splice(b*1||0,c*1||0,e);return a.join("")}),startsWith:d(function(a,b){return a.length>=b.length&&a.substring(0,b.length)===b}),endsWith:d(function(a,b){return a.length>=b.length&&a.substring(a.length-b.length)===b}),succ:d(function(a){var b=a.split("");b.splice(a.length-1,1,String.fromCharCode(a.charCodeAt(a.length-1)+1));return b.join("")}),titleize:d(function(a){for(var a=a.split(" "),b,c=0;c<a.length;c++)b=a[c].split(""),typeof b[0]!=="undefined"&&(b[0]=
 +
b[0].toUpperCase()),c+1===a.length?a[c]=b.join(""):a[c]=b.join("")+" ";return a.join("")}),camelize:d(function(a){return e.trim(a).replace(/(\-|_|\s)+(.)?/g,function(a,c,e){return e?e.toUpperCase():""})}),underscored:function(a){return e.trim(a).replace(/([a-z\d])([A-Z]+)/g,"$1_$2").replace(/\-|\s+/g,"_").toLowerCase()},dasherize:function(a){return e.trim(a).replace(/([a-z\d])([A-Z]+)/g,"$1-$2").replace(/^([A-Z]+)/,"-$1").replace(/\_|\s+/g,"-").toLowerCase()},humanize:function(a){return e.capitalize(this.underscored(a).replace(/_id$/,
 +
"").replace(/_/g," "))},trim:d(function(a,b){if(!b&&o)return o.call(a);b=b?e.escapeRegExp(b):"\\s";return a.replace(RegExp("^["+b+"]+|["+b+"]+$","g"),"")}),ltrim:d(function(a,b){b=b?e.escapeRegExp(b):"\\s";return a.replace(RegExp("^["+b+"]+","g"),"")}),rtrim:d(function(a,b){b=b?e.escapeRegExp(b):"\\s";return a.replace(RegExp("["+b+"]+$","g"),"")}),truncate:d(function(a,b,c){b=b*1||0;return a.length>b?a.slice(0,b)+(c||"..."):a}),prune:d(function(a,b,c){var c=c||"...",b=b*1||0,d="",d=a.substring(b-
 +
1,b+1).search(/^\w\w$/)===0?e.rtrim(a.slice(0,b).replace(/([\W][\w]*)$/,"")):e.rtrim(a.slice(0,b)),d=d.replace(/\W+$/,"");return d.length+c.length>a.length?a:d+c}),words:function(a,b){return String(a).split(b||" ")},pad:d(function(a,b,c,e){var d="",d=0,b=b*1||0;c?c.length>1&&(c=c.charAt(0)):c=" ";switch(e){case "right":d=b-a.length;d=l(c,d);a+=d;break;case "both":d=b-a.length;d={left:l(c,Math.ceil(d/2)),right:l(c,Math.floor(d/2))};a=d.left+a+d.right;break;default:d=b-a.length,d=l(c,d),a=d+a}return a}),
 +
lpad:function(a,b,c){return e.pad(a,b,c)},rpad:function(a,b,c){return e.pad(a,b,c,"right")},lrpad:function(a,b,c){return e.pad(a,b,c,"both")},sprintf:m,vsprintf:function(a,b){b.unshift(a);return m.apply(null,b)},toNumber:function(a,b){var c;c=(a*1||0).toFixed(b*1||0)*1||0;return!(c===0&&a!=="0"&&a!==0)?c:Number.NaN},strRight:d(function(a,b){var c=!b?-1:a.indexOf(b);return c!=-1?a.slice(c+b.length,a.length):a}),strRightBack:d(function(a,b){var c=!b?-1:a.lastIndexOf(b);return c!=-1?a.slice(c+b.length,
 +
a.length):a}),strLeft:d(function(a,b){var c=!b?-1:a.indexOf(b);return c!=-1?a.slice(0,c):a}),strLeftBack:d(function(a,b){var c=a.lastIndexOf(b);return c!=-1?a.slice(0,c):a}),exports:function(){var a={},b;for(b in this)if(this.hasOwnProperty(b)&&!(b=="include"||b=="contains"||b=="reverse"))a[b]=this[b];return a}};e.strip=e.trim;e.lstrip=e.ltrim;e.rstrip=e.rtrim;e.center=e.lrpad;e.ljust=e.lpad;e.rjust=e.rpad;e.contains=e.include;if(typeof exports!=="undefined"){if(typeof module!=="undefined"&&module.exports)module.exports=
 +
e;exports._s=e}else typeof k._!=="undefined"?(k._.string=e,k._.str=k._.string):k._={string:e,str:e}})(this||window);
 +
 
 +
/*  По меньшей мере два скрипта MediaWiki:
 +
  *     1)  /skins/common/edit.js
 +
*      2)  /skins/common/preview.js
 +
*  полагаются на то, что jQuery можно вызвать переменною $j.
 +
  *  Так не разочаруем же их, хотя [[JQuery для MediaWiki]] подменило ожидаемый ими код:
 +
*/
 +
$j=$;
 +
 
 +
/**
 +
* EasyDrag 1.5 - Drag & Drop jQuery Plug-in
 +
* Source:      http://fromvega.com/code/easydrag/jquery.easydrag.handler.beta2.js
 +
* Description: http://fromvega.com/wordpress/2007/07/14/easydrag-jquery-plugin/
 
*/
 
*/
$(function(){
+
(function($){
   if (typeof(donotlocalscroll) == 'undefined') {
+
 
      $.localScroll({  // плавное проматывание страницы внутренними её гиперссылками
+
// to track if the mouse button is pressed
        hash: true,   // багфикс «Back», [[Обсуждение участника:Mithgol the Webmaster]] июнь 2010
+
var isMouseDown   = false;
        onAfter: function(target){ // багфикс :target, http://habrahabr.ru/blogs/jquery/80434/
+
 
            location = '#' + ( target.id || target.name ); // подсветка сносок
+
// to track the current element being dragged
        }
+
var currentElement = null;
      });
+
 
  }
+
// callback holders
 +
var dropCallbacks = {};
 +
var dragCallbacks = {};
 +
 +
// bubbling status
 +
var bubblings = {};
 +
 
 +
// global position records
 +
var lastMouseX;
 +
var lastMouseY;
 +
var lastElemTop;
 +
var lastElemLeft;
 +
 +
// track element dragStatus
 +
var dragStatus = {};
 +
 
 +
// if user is holding any handle or not
 +
var holdingHandler = false;
 +
 
 +
// returns the mouse (cursor) current position
 +
$.getMousePosition = function(e){
 +
var posx = 0;
 +
var posy = 0;
 +
 
 +
if (!e) var e = window.event;
 +
 
 +
if (e.pageX || e.pageY) {
 +
posx = e.pageX;
 +
posy = e.pageY;
 +
}
 +
else if (e.clientX || e.clientY) {
 +
posx = e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft;
 +
posy = e.clientY + document.body.scrollTop + document.documentElement.scrollTop;
 +
}
 +
 
 +
return { 'x': posx, 'y': posy };
 +
};
 +
 
 +
// updates the position of the current element being dragged
 +
$.updatePosition = function(e) {
 +
var pos = $.getMousePosition(e);
 +
 
 +
var spanX = (pos.x - lastMouseX);
 +
var spanY = (pos.y - lastMouseY);
 +
 
 +
$(currentElement).css("top",  (lastElemTop + spanY));
 +
$(currentElement).css("left", (lastElemLeft + spanX));
 +
};
 +
 
 +
// when the mouse is moved while the mouse button is pressed
 +
$(document).mousemove(function(e){
 +
if(isMouseDown && dragStatus[currentElement.id] != 'false'){
 +
// update the position and call the registered function
 +
$.updatePosition(e);
 +
if(dragCallbacks[currentElement.id] != undefined){
 +
dragCallbacks[currentElement.id](e, currentElement);
 +
}
 +
 
 +
return false;
 +
}
 +
});
 +
 
 +
// when the mouse button is released
 +
$(document).mouseup(function(e){
 +
if(isMouseDown && dragStatus[currentElement.id] != 'false'){
 +
isMouseDown = false;
 +
if(dropCallbacks[currentElement.id] != undefined){
 +
dropCallbacks[currentElement.id](e, currentElement);
 +
}
 +
 
 +
return false;
 +
}
 +
});
 +
 
 +
// register the function to be called while an element is being dragged
 +
$.fn.ondrag = function(callback){
 +
return this.each(function(){
 +
dragCallbacks[this.id] = callback;
 +
});
 +
};
   −
  toggleToc = function(){ // плавное сокрытие и открытие оглавления страницы
+
// register the function to be called when an element is dropped
      var $toc = $('#toc ul:first');
+
$.fn.ondrop = function(callback){
      var $toggleLink = $('#togglelink');
+
return this.each(function(){
 +
dropCallbacks[this.id] = callback;
 +
});
 +
};
 +
 +
// disable the dragging feature for the element
 +
$.fn.dragOff = function(){
 +
return this.each(function(){
 +
dragStatus[this.id] = 'off';
 +
});
 +
};
 +
 +
// enable the dragging feature for the element
 +
$.fn.dragOn = function(){
 +
return this.each(function(){
 +
dragStatus[this.id] = 'on';
 +
});
 +
};
 +
 +
// set a child element as a handler
 +
$.fn.setHandler = function(handlerId){
 +
return this.each(function(){
 +
var draggable = this;
 +
 +
// enable event bubbling so the user can reach the handle
 +
bubblings[this.id] = true;
 +
 +
// reset cursor style
 +
$(draggable).css("cursor", "");
 +
 +
// set current drag status
 +
dragStatus[draggable.id] = "handler";
   −
      if (($toc.length != 0) && ($toggleLink.length != 0)) {
+
// change handle cursor type
        if ($toc.is(':visible')) {
+
$("#"+handlerId).css("cursor", "move");
            $toggleLink.text(mediaWiki.msg('showtoc'));
+
            document.cookie = "hidetoc=1";
+
// bind event handler
            $toc.slideUp(1000);
+
$("#"+handlerId).mousedown(function(e){
        } else {
+
holdingHandler = true;
            $toggleLink.text(mediaWiki.msg('hidetoc'));
+
$(draggable).trigger('mousedown', e);
            document.cookie = "hidetoc=0";
+
});
            $toc.slideDown(1000);
+
        };
+
// bind event handler
      };
+
$("#"+handlerId).mouseup(function(e){
  };
+
holdingHandler = false;
});
+
});
 +
});
 +
}
   −
// Редактирование новыми инструментами:
+
// set an element as draggable - allowBubbling enables/disables event bubbling
 +
$.fn.easydrag = function(allowBubbling){
   −
if( $('textarea').length > 0 ){
+
return this.each(function(){
  importStylesheet ('MediaWiki:Edit.css');
  −
  importScript ('MediaWiki:Edit.js');
  −
}
     −
/*  Расширенный поиск.
+
// if no id is defined assign a unique one
*  Автор:      [[Участник:Dream]]
+
if(undefined == this.id || !this.id.length) this.id = "easydrag"+(new Date().getTime());
*  jQuery-код:  [[Участник:Mithgol the Webmaster]]
+
*/
+
// save event bubbling status
/*
+
bubblings[this.id] = allowBubbling ? true : false;
if (wgPageName == "Служебная:Search") { $(function(){
  −
  var $SearchForm = $('#powersearch');
  −
  if ($SearchForm.length === 0) return;
     −
  var $powerSearchText = $('#powerSearchText');
+
// set dragStatus
  if ($powerSearchText.length === 0) return;
+
dragStatus[this.id] = "on";
 +
 +
// change the mouse pointer
 +
$(this).css("cursor", "move");
   −
  var safeSearchValue = $powerSearchText.val().
+
// when an element receives a mouse press
      replace(/&/g, "&amp;").
+
$(this).mousedown(function(e){
      replace(/</g, "&lt;").
+
      replace(/>/g, "&gt;").
+
// just when "on" or "handler"
      replace(/"/g, "&quot;");
+
if((dragStatus[this.id] == "off") || (dragStatus[this.id] == "handler" && !holdingHandler))
 +
return bubblings[this.id];
   −
  var googleSearch =
+
// set it as absolute positioned
      '<form action="http://www.google.com/custom" method="get" name="google" target="_blank" id="google" ' +
+
$(this).css("position", "absolute");
      'onsubmit="$(\'#google input[name=q]\').val( $(\'#powerSearchText\').val() ); return true;">' +
  −
      '<input type="hidden" name="hl" value="ru" />' +
  −
      '<input type="hidden" name="domains" value="traditio-ru.org" />' +
  −
      '<input type="hidden" name="q" maxlength="2048" value="' + safeSearchValue + '" />' +
  −
      '<input type="hidden" name="sitesearch" value="traditio-ru.org" />' +
  −
      '<input type="submit" value="Поиск Google по «Право — Традиции»" style="width: 20em;" /></form>';
  −
   
  −
  var yandexSearch =
  −
      '<form action="http://www.yandex.ru/yandsearch" method="get" name="yandex" target="_blank" id="yandex" ' +
  −
      'onsubmit="$(\'#yandex input[name=text]\').val( $(\'#powerSearchText\').val() ); return true;">' +
  −
      '<input type="hidden" name="text" maxlength="300" value="' + safeSearchValue + '" />' +
  −
      '<input type="hidden" name="site" value="traditio-ru.org" />' +
  −
      '<input type="hidden" name="ras" value="1" />' +
  −
      '<input type="hidden" name="site_manually" value="true" />' +
  −
      '<input type="hidden" name="server_name" value="[pravo.traditio" />' +
  −
      '<input type="submit" value="Поиск «Яндексом» по «Право — Традиции»" style="width: 20em;" /></form>';
     −
  var ramblerSearch =
+
// set z-index
      '<form action="http://nova.rambler.ru/search?adult=none" method="get" name="rambler" target="_blank" id="rambler" ' +
+
$(this).css("z-index", parseInt( new Date().getTime()/1000 ));
      'onsubmit="$(\'#rambler input[name=query]\').val( $(\'#powerSearchText\').val() ); return true;">' +
  −
      '<input type="hidden" name="query" maxlength="300" value="' + safeSearchValue + '" />' +
  −
      '<input type="hidden" name="filter" value="traditio-ru.org" />' +
  −
      '<input type="submit" value="Поиск «Рамблером» по «Право — Традиции»" style="width: 20em;" /></form>';
     −
  $SearchForm.after(
+
// update track variables
      '<table style="margin-left: 57%; padding-left: 4px;"><tr><td>' +
+
isMouseDown   = true;
      yandexSearch + '</td></tr><tr><td>' + googleSearch + '</td></tr><tr><td>' + ramblerSearch +
+
currentElement = this;
      '</td></tr></table>'
  −
   );
  −
}); }
  −
*/
     −
/*
+
// retrieve positioning properties
*  Далее следует код, который:
+
var pos   = $.getMousePosition(e);
*
+
lastMouseX = pos.x;
*  *) показывает значок статуса ICQ в шаблоне {{ICQ}}
+
lastMouseY = pos.y;
*
  −
*  *) показывает значок статуса Skype в шаблоне {{Skype}}
  −
*
  −
*  *) показывает консоль для отслеживания статуса игры Quake II
  −
*      на странице [[Quake II Deathmatch]]
  −
*/
  −
$(function(){
  −
  // ICQ status background
  −
   $('span.ICQ').each(function(){
  −
      var ICQURL = 'http://status.icq.com/online.gif?icq=' + this.id + '&img=5';
  −
      $(this).css({
  −
        'padding' :          '0 0 0 20px',
  −
        'background-image':  'url(' + ICQURL + ')',
  −
        'background-repeat': 'no-repeat'
  −
      });
  −
  });
     −
  // Skype status
+
lastElemTop  = this.offsetTop;
  $('span.skypeTemplate').each(function(){
+
lastElemLeft = this.offsetLeft;
      var $this = $(this);
  −
      var username = $this.find('span.skypeUserName').text();
     −
      // А теперь защита от взлома Традиции, совершаемого впрыскиванием левого кода.
+
$.updatePosition(e);
      // По адресу https://login.skype.com/account/signup-form сказано:
  −
      // What is my Skype Name?
  −
      // Your Skype Name is your unique username for Skype.
  −
      // It must be between 6-32 characters, start with a letter
  −
      // and contain only letters and numbers (no spaces or special characters).
  −
      if (username.match(/^[a-zA-Z][a-zA-Z01-9-]{5,31}$/) === null) return;
     −
      $this.html(
+
return bubblings[this.id];
        '<a href="skype:' + username + '?call" class="val-3"><img ' +
+
});
        'src="http://mystatus.skype.com/smallicon/' + username + '" ' +
+
});
        'width="16" height="16" alt="[Skype status]" title=""></a> ' +
+
};
        '<a href="skype:' + username + '?call"><span class="skypeUserName">' +
  −
        username + '</span></a>'
  −
      );
  −
  });
     −
  // Quake II consoles
+
})(jQuery);
  $('span.quake2traditio').each(function(){
  −
      var $this = $(this);
  −
      // проверяем, действительно ли указано имя сервера
  −
      // (защита от взлома «Право — Традиции», совершаемого впрыскиванием левого кода)
  −
      // имя.имя.имя...имя:порт, где имя == [a-zA-Z01-9][a-zA-Z01-9-]*
  −
      //                          а порт не обязателен
  −
      var TheText = $this.text();
  −
      if (TheText.match(/^([a-zA-Z01-9][a-zA-Z01-9-]*\.)+([a-zA-Z01-9][a-zA-Z01-9-]*)(:[1-9][01-9]*)?$/)
  −
                  === null)
  −
      {
  −
        // не сервер:
  −
        $this.html('<b>' + TheText + ' не является сервером Quake&nbsp;II</b>');
  −
      } else {
  −
        // сервер:
  −
        $this.html('<embed style="width: 100%;" height=388 type="application/x-q3plug-plugin" ' +
  −
                    'name="' + TheText + '" color="#ffeedd" color2="#88ff88" game="Q2" ' +
  −
                    'pluginspage="http://members.liwest.at/mb/q3plug" />');
  −
      } // конец проверки того, действительно ли указано имя сервера
  −
  });
  −
});
      
/******************************************************************************************
 
/******************************************************************************************
Строка 306: Строка 411:  
   }
 
   }
 
});
 
});
  −
/*** Дополнение сносок всплывающими подсказками ***/
  −
$(function(){
  −
  $('.reference').each(function(){
  −
      var $this = $(this);
  −
      // document.getElementById вместо $, т.к. последний не работает с точками,
  −
      //    появляющимися в закодированном названии якоря на русском:
  −
      var $cite = $( document.getElementById ($this.find('a').attr('href').substring (1)) ).clone();
  −
      var $backlink = $cite.find('a').eq(0);
  −
      if ($backlink.text() == '↑'){ $backlink.remove(); }
  −
  −
      var $bodyContent = $('#bodyContent');
  −
      var parentShift = $bodyContent.children().first().offsetParent().offset();
  −
      $this.qtip({
  −
        content: { text: $cite.html() },
  −
        position: {
  −
            container: $bodyContent,
  −
            adjust: {
  −
              x: -parentShift.left,
  −
              y: -parentShift.top,
  −
              screen: true
  −
            }
  −
        },
  −
        show: {
  −
            delay: 1,
  −
            effect: { length: 500 }
  −
        },
  −
        hide: {
  −
            delay: 200,
  −
            fixed: true,
  −
            effect: {
  −
              length: 1111
  −
            }
  −
        },
  −
        style: {
  −
            name: 'light',
  −
            width: { max: 512 },
  −
            border: {
  −
              width: 1,
  −
              radius: 0,
  −
              color: '#777'
  −
            },
  −
            color: 'inherit'
  −
        }
  −
      });
  −
  }); // завершение each()-цикла
  −
});
  −
  −
/*** Дополнение span'ов с классом tipped всплывающими подсказками из вложенного span'а с классом .tip ***/
  −
$(function(){
  −
    createToolTips($('#bodyContent'));
  −
});
  −
  −
// находит $('.tipped') внутри $cttArea, применяет addHTMLToolTip() по мере нужды
  −
function createToolTips($cttArea){
  −
  $cttArea.find('.tipped').each(function(){
  −
      var $this = $(this);
  −
      $this.css('position', 'relative');
  −
      var $tip = $this.children('.tip').clone();
  −
      addHTMLToolTip($this, $tip.html());
  −
  }); // завершение each()-цикла
  −
}
  −
  −
// функция снабжает элемент $tipped подсказкою с HTML из tip
  −
// вызывает createToolTips() рекурсивно
  −
function addHTMLToolTip($tipped, tip){
  −
  var $bodyContent = $('#bodyContent');
  −
  var parentShift = $bodyContent.children().first().offsetParent().offset();
  −
  $tipped.qtip({
  −
      content: { text: tip },
  −
      position: {
  −
        container: $bodyContent,
  −
        corner: {
  −
            target:  'bottomRight',
  −
            tooltip: 'topRight'
  −
        },
  −
        adjust: {
  −
            x: -parentShift.left,
  −
            y: -parentShift.top,
  −
            screen: true
  −
        }
  −
      },
  −
      show: {
  −
        delay: 1,
  −
        effect: { length: 500 }
  −
      },
  −
      hide: {
  −
        delay: 200,
  −
        fixed: true,
  −
        effect: {
  −
            length: 1111
  −
        }
  −
      },
  −
      style: {
  −
        name: 'light',
  −
        width: { max: 512 },
  −
        border: {
  −
            width: 1,
  −
            radius: 0,
  −
            color: '#777'
  −
        },
  −
        color: 'inherit'
  −
      },
  −
      // Вложенные подсказки:
  −
      api: {
  −
        onRender: function(){
  −
            createToolTips($( this.elements.content ));
  −
        }
  −
      }
  −
  });
  −
}
      
/* ***  Отрисовка геокарт [[WikiLeaflet]]  *** */
 
/* ***  Отрисовка геокарт [[WikiLeaflet]]  *** */
Строка 448: Строка 442:  
   }
 
   }
 
});
 
});
  −
// Sharing buttons:
  −
// (Removed).
      
// A more explicit invitation to participate:
 
// A more explicit invitation to participate:
// (Removed).
+
$(function() {
 
+
if (wgNamespaceNumber === 0 && wgAction === 'view' && wgArticleId !== 13047 && wgRestrictionEdit.length === 0 && wgPageName.indexOf (':') === -1 ) {
// настройки ColorBox
+
    $('#siteSub').append ('<span class="noprint">. Вы можете <a href="' + $('link[rel="edit"]').attr('href') + '">дополнить или исправить</a> его.</span>');
$.colorbox.settings.opacity = 0.45;
+
}
$.colorbox.settings.current = '{current} из {total}';
  −
// ColorBox миниатюр
  −
$(function(){
  −
  $('div.thumb:has(a.image):not(li.gallerybox div.thumb):not(div.lineBlock div.thumb)').each(function(){
  −
      var $this = $(this);
  −
      var theURL = $this.find('a.image').attr('href');
  −
      var imgURL = theURL + ' #file';
  −
 
  −
      var $caption = $this.find('div.thumbcaption').clone();
  −
      $caption.find('div.magnify').remove();
  −
      var imgCaption = $caption.html();
  −
 
  −
      $this.find('a.image').click(function(){
  −
        $.colorbox({
  −
            'href':  imgURL,
  −
            'title': imgCaption,
  −
            'onComplete' : function(){
  −
              var $loaded = $('#cboxLoadedContent');
  −
              if ($loaded.html().indexOf('×') !== -1){
  −
                  $loaded.find('div#file a').attr('title', 'открыть полноразмерную версию');
  −
                  $loaded.append('<div class="fullMedia"></div>');
  −
                  $.get(theURL, function(data){
  −
                    $loaded.find('.fullMedia').html( $(data).find('.fullMedia').html() );
  −
                    $.colorbox.resize();
  −
                  });
  −
              }
  −
            }
  −
        });
  −
        $('#colorbox').easydrag();
  −
        return false;
  −
      });
  −
  });
  −
});
  −
// ColorBox строчных блоков (с поддержкою галерейности)
  −
$(function(){
  −
  $('div.lineBlock:not(div.lineBlock + div.lineBlock)').each(function(idx){
  −
      var gallID = 'lineblocklist' + idx;
  −
      $(this).nextUntil(':not(div.lineBlock)').andSelf().find('div.thumb a.image').colorbox({
  −
        'rel': gallID,
  −
        'href': function(){
  −
            return $(this).attr('href') + ' #file';
  −
        },
  −
        'title': function(){
  −
            var $caption = $(this).closest('div.thumb').find('div.thumbcaption').clone();
  −
            $caption.find('div.magnify').remove();
  −
            return $caption.html();
  −
        },
  −
        'onComplete': function(){
  −
            var theURL = $(this).attr('href');
  −
            var $loaded = $('#cboxLoadedContent');
  −
            if ($loaded.html().indexOf('×') !== -1){
  −
              $loaded.find('div#file a').attr('title', 'открыть полноразмерную версию');
  −
              $loaded.append('<div class="fullMedia"></div>');
  −
              $.get(theURL, function(data){
  −
                  $loaded.find('.fullMedia').html( $(data).find('.fullMedia').html() );
  −
                  $.colorbox.resize();
  −
              });
  −
            }
  −
        },
  −
        'onLoad': function(){
  −
            $('#colorbox').easydrag();
  −
        }
  −
      });
  −
  });
  −
});
  −
// ColorBox галерей (с поддержкою галерейности)
  −
$(function(){
  −
  $('ul.gallery:has(li.gallerybox div.thumb a.image)').each(function(idx){
  −
      var gallID = 'tradigallery' + idx;
  −
      $(this).find('li.gallerybox div.thumb a.image').colorbox({
  −
        'rel': gallID,
  −
        'href': function(){
  −
            return $(this).attr('href') + ' #file';
  −
        },
  −
        'title': function(){
  −
            return $(this).closest('li.gallerybox').find('div.gallerytext').html();
  −
        },
  −
        'onComplete': function(){
  −
            var theURL = $(this).attr('href');
  −
            var $loaded = $('#cboxLoadedContent');
  −
            if ($loaded.html().indexOf('×') !== -1){
  −
              $loaded.find('div#file a').attr('title', 'открыть полноразмерную версию');
  −
              $loaded.append('<div class="fullMedia"></div>');
  −
              $.get(theURL, function(data){
  −
                  $loaded.find('.fullMedia').html( $(data).find('.fullMedia').html() );
  −
                  $.colorbox.resize();
  −
              });
  −
            }
  −
        },
  −
        'onLoad': function(){
  −
            $('#colorbox').easydrag();
  −
        }
  −
      });
  −
  });
   
});
 
});
   Строка 558: Строка 455:  
     if (!_.isUndef('DisableExternalCounters')) return; // [[MediaWiki:Gadget-DisableExternalCounters.js]]
 
     if (!_.isUndef('DisableExternalCounters')) return; // [[MediaWiki:Gadget-DisableExternalCounters.js]]
 
     // Yandex's and Rambler's counters:
 
     // Yandex's and Rambler's counters:
     var counters = '<a href="http://yandex.ru/cy?base=0&amp;amp;host=pravo.traditio.ru"><img src="http://www.yandex.ru/cycounter?pravo.traditio.ru" alt="ТИЦ Яндекса" width="88" height="31" /></a>'
+
     var counters = '<a href="http://yandex.ru/cy?base=0&amp;amp;host=traditio-ru.org"><img src="http://www.yandex.ru/cycounter?traditio-ru.org" alt="ТИЦ Яндекса" width="88" height="31" /></a>'
/* Register with Rambler first:
   
                 + '<a href="http://top100.rambler.ru/navi/2513448/"><img src="http://counter.rambler.ru/top100.cnt?2513448" alt="Rambler\'s Top 100" width="88" height="31" /></a>'
 
                 + '<a href="http://top100.rambler.ru/navi/2513448/"><img src="http://counter.rambler.ru/top100.cnt?2513448" alt="Rambler\'s Top 100" width="88" height="31" /></a>'
*/
  −
/* Register with LiveInternet first:
   
                 + '<a href="http://www.liveinternet.ru/click" target="_blank"><img src="//counter.yadro.ru/hit?t16.6;r' + escape (document.referrer)
 
                 + '<a href="http://www.liveinternet.ru/click" target="_blank"><img src="//counter.yadro.ru/hit?t16.6;r' + escape (document.referrer)
 
                 + ((typeof (screen) == 'undefined ') ? '' : ';s' + screen.width + '*' + screen.height + '*'
 
                 + ((typeof (screen) == 'undefined ') ? '' : ';s' + screen.width + '*' + screen.height + '*'
Строка 568: Строка 462:  
                   ) + ';u' + escape (document.URL) + ';h' + escape (document.title.substring (0,80)) + ';' + Math.random ()
 
                   ) + ';u' + escape (document.URL) + ';h' + escape (document.title.substring (0,80)) + ';' + Math.random ()
 
                 + '" alt="Счётчик LiveInternet" title="LiveInternet: показано число просмотров за 24 часа, посетителей за 24 часа и за сегодня" '
 
                 + '" alt="Счётчик LiveInternet" title="LiveInternet: показано число просмотров за 24 часа, посетителей за 24 часа и за сегодня" '
                 + 'border="0" width="88" height="31"><\/a>'
+
                 + 'border="0" width="88" height="31"><\/a>';
*/
  −
;
   
     // Different ways in Common and Vector skins:
 
     // Different ways in Common and Vector skins:
 
     if (mw.config.get ('skin') == 'vector') {
 
     if (mw.config.get ('skin') == 'vector') {

Реклама:

Навигация