Utilizador:LBelo (WMB)/common.js: diferenças entre revisões
Conteúdo apagado Conteúdo adicionado
Sem resumo de edição Etiqueta: Reversão manual |
Sem resumo de edição Etiqueta: Revertida |
||
Linha 16: | Linha 16: | ||
// import new migrated JS |
// import new migrated JS |
||
importScript('User:LBelo (WMB)/Common.js/addin-gpgp.js'); |
importScript('User:LBelo (WMB)/Common.js/addin-gpgp.js'); |
||
mw.Modal( { open: 'Contents!!', title: 'Title!!' } ); |
Revisão das 13h09min de 26 de abril de 2024
function addStyleSheet(pageTitle, sucCallback) {
var cssLink = $("<link>");
$("head").append(cssLink);
cssLink.attr({
rel: "stylesheet",
type: "text/css",
href: "https://pt.wikiversity.org/w/index.php?action=raw&ctype=text/css&title=" + pageTitle
});
console.log('loading CSS file ' + pageTitle);
if (typeof sucCallback !== 'undefined') {
checkForStyleSheet(pageTitle, sucCallback);
}
}
// import CSS while not in global namespace
addStyleSheet('User:LBelo (WMB)/Common.css/addin-gpgp.css');
// import new migrated JS
importScript('User:LBelo (WMB)/Common.js/addin-gpgp.js');
mw.Modal( { open: 'Contents!!', title: 'Title!!' } );