MediaWiki:Common.js: Difference between revisions
Disabled Minerva-specific styles workaround
mNo edit summary |
(Disabled Minerva-specific styles workaround) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 5:
window.location.replace("https://bluearchive.wiki" + window.location.pathname);
}
// Common styles are currently loaded through an @import statement in MediaWiki:Mobile.css. I do not know what calls mw.loader.using('mobile.site.styles') currently, but it appears to happen. This code is preserved in case something breaks after caches expire.
// if (mw.config.get("skin") === "minerva") {
// // This hack is required to get custom css to load in mobile view. See https://phabricator.wikimedia.org/T270845
// loadMobileStylesheet();
// }
function initCountdown() {
var reset = new Date();
Line 66 ⟶ 67:
mw.loader.load( '/w/index.php?title=MediaWiki:Junby.js&action=raw&ctype=text/javascript' );
}
const title_split = mw.config.get('wgTitle').toLowerCase().split("/");
if (mw.config.get('wgNamespaceNumber') === 0 && title_split.length === 2 && title_split[1] === 'momotalk') {
mw.loader.load( '/w/index.php?title=MediaWiki:MomotalkChoice.js&action=raw&ctype=text/javascript' );
}
}
});
Line 149 ⟶ 156:
$( document ).ready(function() {
//if video tab is open on inital page display
if ($(".character-images
//Tabber initializes late so events are bound at first click on parent div
$(".character-images div.tabber").
if ($(".character-images
$(".character-images
});
})
|