MediaWiki:Common.js:修订间差异
MediaWiki界面页面
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第56行: | 第56行: | ||
var random_bg_link = weightedRandomSelection(bg_links); | var random_bg_link = weightedRandomSelection(bg_links); | ||
console.log(random_bg_link); | console.log(random_bg_link); | ||
$('body.skin-vector').css('background',random_bg_link | $('body.skin-vector').css('background',random_bg_link); | ||
$('body.skin-vector').css('background-position', 'centre'); | $('body.skin-vector').css('background-position', 'centre'); | ||
$('body.skin-vector').css('background-repeat', 'no-repeat'); | $('body.skin-vector').css('background-repeat', 'no-repeat'); | ||
| 第62行: | 第62行: | ||
$('body.skin-vector').css('background-attachment', 'fixed'); | $('body.skin-vector').css('background-attachment', 'fixed'); | ||
$('body.skin-citizen').css('background', random_bg_link | $('body.skin-citizen').css('background', random_bg_link); | ||
$('body.skin-citizen').css('background-position', 'centre'); | $('body.skin-citizen').css('background-position', 'centre'); | ||
$('body.skin-citizen').css('background-repeat', 'no-repeat'); | $('body.skin-citizen').css('background-repeat', 'no-repeat'); | ||