Ero sivun ”Järjestelmäviesti:Common.js” versioiden välillä
Seikkailuoppaasta
| Rivi 12: | Rivi 12: | ||
if ($('[data-x-hide-title]').length > 0) { | if ($('[data-x-hide-title]').length > 0) { | ||
$('#firstHeading').hide(); | $('#firstHeading').hide(); | ||
| + | $('#bodyContentOuter').css('margin-top', '-1.5em'); | ||
} | } | ||
}); | }); | ||
Versio 13. kesäkuuta 2022 kello 10.33
$(function(){
// hide the stupid navigation options under the title
$('#mw-page-header-links').hide();
$('#p-views li').each(function(){
if (!$(this).is('#ca-more')) {
$('#p-cactions ul').prepend($(this));
}
});
// title-less pages
if ($('[data-x-hide-title]').length > 0) {
$('#firstHeading').hide();
$('#bodyContentOuter').css('margin-top', '-1.5em');
}
});