「MediaWiki:Mobile.js」の版間の差分
編集の要約なし タグ: モバイル編集 モバイルウェブ編集 |
編集の要約なし タグ: モバイル編集 モバイルウェブ編集 |
||
3行目: | 3行目: | ||
var wikiURL = config.wgServer + config.wgScriptPath; | var wikiURL = config.wgServer + config.wgScriptPath; | ||
mw.loader. | $ | ||
.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); | |||
}); | |||
})(); | })(); |
2019年6月24日 (月) 00:14時点における版
(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);
});
})();