「MediaWiki:Mobile.js」の版間の差分
細編集の要約なし タグ: モバイル編集 モバイルウェブ編集 |
細編集の要約なし タグ: モバイル編集 モバイルウェブ編集 |
||
5行目: | 5行目: | ||
$ | $ | ||
.when( | .when( | ||
$.getJSON(wikiURL + "/index.php?title=MediaWiki:MobileUI.json&action=raw&ctype=application/json").then(function (data) { return data }), | $.getJSON(wikiURL + "/index.php?title=MediaWiki:MobileUI.json&action=raw&ctype=application/json").then(function (data) { return data; }), | ||
$.getScript(wikiURL + "/index.php?title=MediaWiki:MobileUI.js&action=raw&ctype=text/javascript").then(function () { return null; }) | |||
) | ) | ||
.done(function ( | .done(function (mobileUI) { | ||
applyMobileUI($, mw, | applyMobileUI($, mw, mobileUI); | ||
}); | }); | ||
})(); | })(); |
2019年6月24日 (月) 00:26時点における版
(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; }),
$.getScript(wikiURL + "/index.php?title=MediaWiki:MobileUI.js&action=raw&ctype=text/javascript").then(function () { return null; })
)
.done(function (mobileUI) {
applyMobileUI($, mw, mobileUI);
});
})();