MediaWiki:Common.js: diferenças entre revisões
Saltar para a navegação
Saltar para a pesquisa
Criou a página com "→Código Javascript colocado aqui será carregado para todos os utilizadores em cada carregamento de página: $(document).ready(function () { if (mw.util.getParamValue('printable') === 'yes') { document.body.classList.add('printable-page'); } });" |
Sem resumo de edição |
||
| Linha 3: | Linha 3: | ||
if (mw.util.getParamValue('printable') === 'yes') { | if (mw.util.getParamValue('printable') === 'yes') { | ||
document.body.classList.add('printable-page'); | document.body.classList.add('printable-page'); | ||
} | |||
}); | |||
$(document).ready(function () { | |||
// Check if we are in printable mode | |||
if (mw.util.getParamValue('printable') === 'yes') { | |||
// Remove the print-disabled warning if present | |||
$('.mw-print-disabled').remove(); | |||
} | } | ||
}); | }); | ||
Revisão das 11h23min de 22 de abril de 2025
/* Código Javascript colocado aqui será carregado para todos os utilizadores em cada carregamento de página */
$(document).ready(function () {
if (mw.util.getParamValue('printable') === 'yes') {
document.body.classList.add('printable-page');
}
});
$(document).ready(function () {
// Check if we are in printable mode
if (mw.util.getParamValue('printable') === 'yes') {
// Remove the print-disabled warning if present
$('.mw-print-disabled').remove();
}
});