Ero sivun ”Järjestelmäviesti:Common.js” versioiden välillä
Seikkailuoppaasta
| Rivi 14: | Rivi 14: | ||
$('#bodyContentOuter').css('margin-top', '-1.5em'); | $('#bodyContentOuter').css('margin-top', '-1.5em'); | ||
} | } | ||
| + | |||
| + | // crafting grids | ||
| + | $('.x-crafting').each(function(){ | ||
| + | const craftItems = ($(this).attr('data-crafting-data') || '').split(';'); | ||
| + | |||
| + | }); | ||
}); | }); | ||
Versio 13. kesäkuuta 2022 kello 22.54
$(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');
}
// crafting grids
$('.x-crafting').each(function(){
const craftItems = ($(this).attr('data-crafting-data') || '').split(';');
});
});