MediaWiki:Common.js: Difference between revisions
From Helbreath Portal
No edit summary |
No edit summary |
||
| Line 7: | Line 7: | ||
display: 'block', | display: 'block', | ||
margin: '20px auto', // centrowanie | margin: '20px auto', // centrowanie | ||
width: ' | width: '350px', | ||
height: ' | height: '150px', | ||
background: 'url(/images/portallogo.png) no-repeat center', | background: 'url(/images/portallogo.png) no-repeat center', | ||
backgroundSize: 'contain', | backgroundSize: 'contain', | ||
Revision as of 23:12, 18 August 2025
$(document).ready(function() {
if ($('#custom-top-logo').length === 0) {
var logo = $('<a>', {
id: 'custom-top-logo',
href: mw.util.getUrl('Main_Page'),
css: {
display: 'block',
margin: '20px auto', // centrowanie
width: '350px',
height: '150px',
background: 'url(/images/portallogo.png) no-repeat center',
backgroundSize: 'contain',
zIndex: 1000
}
});
// wstawiamy logo **po headerze**, a nie w sidebarze
$('#mw-header-container').after(logo);
}
});