Changes

Jump to navigation Jump to search

MediaWiki:Common.js

151 bytes added, 5 years ago
no edit summary
pageId.css( {
"overflow": "scroll",
"height": pageId.attr("data-height"), "width": pageId.attr("data-width")
});
loadWikiPage( page );
anchors.on("click", function(e){
link = $( this )[0].href.split("https://universityinnovation.org/wiki/");
if( link.length > 1 && link.pop().split(":")[0] !== "File" ){ e. preventDefault();
newPage = link.pop();
if( newPage.includes("Main_Page") || newPage.includes("File:") ){ $( this ).attr('target', '_blank').get(0).click(); } else { e. preventDefault(); loadWikiPage( newPage ); }
} else {
$( this ).attr('target', '_blank').get(0).click();

Navigation menu