跳转到内容

User:魔琴/gadgets/legacy-2022/logo.js

维基百科,自由的百科全书
注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google ChromeFirefoxMicrosoft EdgeSafari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。
$(document).ready(function(){
if (!$('body').hasClass('skin-vector-2022'))
	return;
$('#siteNotice').parent().detach().appendTo('.vector-header-end').css('z-index','-1').css('position','relative');
$('body').append('<style>a.mw-logo{background-position:center center;background-repeat:no-repeat;display:block;width:10em;height:160px;text-decoration:none;}</style>');
$('a.mw-logo').html('');
var l = $('html').attr('lang')
if (l === 'zh-Hans' || l === 'zh-Hans-CN' || l === 'zh-Hans-MY' || l === 'zh-Hans-SG' ) {
    $('a.mw-logo').addClass('skin-invert').css('background-image','url(\"/static/images/project-logos/zhwiki-hans.png\")');
} else {
    $('a.mw-logo').addClass('skin-invert').css('background-image','url(\"/static/images/project-logos/zhwiki.png\")');
}

});