User:LBelo (WMB)/common.js

function addStyleSheet(pageTitle, sucCallback) { var cssLink = $(" "); $("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');