Utilizador:BMNeuroMat/common.js

Fonte: Wikiversidade

Nota: Depois de publicar, poderá ter de contornar a cache do seu navegador para ver as alterações.

  • Firefox / Safari: Pressione Shift enquanto clica Recarregar, ou pressione Ctrl-F5 ou Ctrl-R (⌘-R no Mac)
  • Google Chrome: Pressione Ctrl-Shift-R (⌘-Shift-R no Mac)
  • Internet Explorer / Edge: Pressione Ctrl enquanto clica Recarregar, ou pressione Ctrl-F5
  • Opera: Pressione Ctrl-F5.
/*
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('MediaWiki:Common.css/addin-mooc.css');
// import new migrated JS
importScript('MediaWiki:Common.js/addin-mooc.js');
*/