「MediaWiki:Mobile.js」の版間の差分
編集の要約なし タグ: モバイル編集 モバイルウェブ編集 |
細編集の要約なし |
||
8行目: | 8行目: | ||
mw.loader.getScript(wikiURL + "/index.php?title=MediaWiki:MobileUI.js&action=raw&ctype=text/javascript"), | mw.loader.getScript(wikiURL + "/index.php?title=MediaWiki:MobileUI.js&action=raw&ctype=text/javascript"), | ||
) | ) | ||
.done(function (json | .done(function (json) { | ||
applyMobileUI($, mw, json); | applyMobileUI($, mw, json); | ||
}); | }); | ||
})(); | })(); |
2019年6月24日 (月) 00:16時点における版
(function () {
var config = mw.config.get(["wgServer", "wgScriptPath"]);
var wikiURL = config.wgServer + config.wgScriptPath;
$
.when(
$.getJSON(wikiURL + "/index.php?title=MediaWiki:MobileUI.json&action=raw&ctype=application/json").then(function (data) { return data }),
mw.loader.getScript(wikiURL + "/index.php?title=MediaWiki:MobileUI.js&action=raw&ctype=text/javascript"),
)
.done(function (json) {
applyMobileUI($, mw, json);
});
})();