MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
m (Protected "MediaWiki:Common.js": Sensitive - JS! ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) Tags: Mobile edit Mobile web edit |
(add APLcart) |
||
Line 4: | Line 4: | ||
mw.loader.load('/w/index.php?title=MediaWiki:LeadingAndTrailingCells.js&action=raw&ctype=text/javascript'); | 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'); | |||
} | } |
Revision as of 10:22, 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'); }