Изменения

MediaWiki:Monobook.js

963 байта добавлено, 21:36, 21 ноября 2009
Нет описания правки
window.attachEvent("onload", func);
}
 
 
/* ====== NOTICE ======*/
 
/* @param mode string to be appended to the utm_source paramter like "utm_source=[notice]_[mode]" */
function goToDonationPage( mode ) {
var url = 'http://meta.wikimedia.org/wiki/Special:GeoLite?lang=ru&&utm_medium=sitenotice&utm_campaign=fundraiser2009&utm_source=2009_Notice30_g';
if ( mode && mode.length ) {
url += '_' + mode;
}
var targets = String( 'Support_Wikipedia, Support_Wikipedia2' ).split(',');
if ( targets.length ) {
url += '&target=' + targets[Math.floor( Math.random() * targets.length )].replace(/^\s+|\s+$/, '');
}
window.location = url;
}
// Set thermometer sizes
var maxPixels = 406;
var range = parseInt( '7500000' );
var value = parseInt( '1500000' );
var fill = parseInt( maxPixels * ( ( 1 / range ) * value ) );
var base = maxPixels - fill;
appendCSS('\
.siteNoticeBig .notice-thermometer-fill { width: ' + fill + 'px; }\
.siteNoticeBig .notice-thermometer-base { width: ' + base + 'px; }\
');
Бюрократ, editor, nsBadRO, nsBadRW, nsDraftRO, nsDraftRW, администратор
16 745
правок