MediaWiki:Common.js: Difference between revisions

From APL Wiki
Jump to navigation Jump to search
(add APLcart)
(add ngn/apl)
Line 9: Line 9:
$('.thumbinner').css('width','38vw');
$('.thumbinner').css('width','38vw');
}
}
$('[title="File:Ngn/apl"]').replaceWith('<iframe src="https://n9n.gitlab.io/apl/web/" style="height:350px;width:calc(100% - 4px)">');

Revision as of 23:35, 6 January 2020

if ($(".LeadingAndTrailingCells").length) {
	mw.loader.getScript('/w/index.php?title=MediaWiki:D3.v5.min.js&action=raw&ctype=text/javascript')
		.then(function() {
			mw.loader.load('/w/index.php?title=MediaWiki:LeadingAndTrailingCells.js&action=raw&ctype=text/javascript');
		});
}
if ($('[title="File:APLcart"]').length) {
	$('[title="File:APLcart"]').replaceWith('<iframe src="https://aplcart.info?w" style="height:38vh;width:calc(100% - 4px)">');
	$('.thumbinner').css('width','38vw');
}
$('[title="File:Ngn/apl"]').replaceWith('<iframe src="https://n9n.gitlab.io/apl/web/" style="height:350px;width:calc(100% - 4px)">');