User:EPorto (WMB)/common.js

function addStyleSheet(pageTitle, sucCallback) { var cssLink = $(" "); $("head").append(cssLink); cssLink.attr({		rel: "stylesheet",		type: "text/css",		href: "https://en.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:EPorto (WMB)/addin-mooc.css'); // import new migrated JS importScript('User:EPorto (WMB)/addin-mooc.js');