MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
Initialize server toggle, removed legacy mobile stylesheets loader
(Disabled Minerva-specific styles workaround) |
(Initialize server toggle, removed legacy mobile stylesheets loader) |
||
Line 5:
window.location.replace("https://bluearchive.wiki" + window.location.pathname);
}
// }▼
function initCountdown() {
var reset = new Date();
Line 33 ⟶ 28:
tick();
}
if (document.getElementsByClassName("server-toggle-parent").length > 0 || document.getElementsByClassName("server-toggle-jp-button").length > 0 || document.getElementsByClassName("tabber__tabs").length > 0) {
//console.log("Loading server switching js");
mw.loader.load ( '/w/index.php?title=MediaWiki:ServerToggle.js&action=raw&ctype=text/javascript' );
function initCharacterTable() {
mw.loader.using("jquery.tablesorter", function() {
$("table.sortable").tablesorter({sortList: [{2: "desc"}, {1: "asc"}]});
});
}
if (mw.config.get("wgIsArticle")) {
|