「MediaWiki:Mobile.js」の版間の差分
編集の要約なし タグ: モバイル編集 モバイルウェブ編集 |
細編集の要約なし タグ: モバイル編集 モバイルウェブ編集 |
||
1行目: | 1行目: | ||
(function () { | (function () { | ||
var | var wgScript = mw.config.get("wgScript"); | ||
$ | $ | ||
.when( | .when( | ||
$.getJSON( | $.getJSON(wgScript + "?title=MediaWiki:MobileUI.json&action=raw&ctype=application/json").then(function (data) { return data; }), | ||
$.getScript( | $.getScript(wgScript + "?title=MediaWiki:MobileUI.js&action=raw&ctype=text/javascript").then(function () { return null; }) | ||
) | ) | ||
.done(function (mobileUI) { | .done(function (mobileUI) { | ||
var builder = new MobileUIBuilder(mw | var builder = new MobileUIBuilder(mw); | ||
builder.build(mobileUI); | builder.build(mobileUI); | ||
}); | }); | ||
})(); | })(); |
2019年6月26日 (水) 23:43時点における版
(function () {
var wgScript = mw.config.get("wgScript");
$
.when(
$.getJSON(wgScript + "?title=MediaWiki:MobileUI.json&action=raw&ctype=application/json").then(function (data) { return data; }),
$.getScript(wgScript + "?title=MediaWiki:MobileUI.js&action=raw&ctype=text/javascript").then(function () { return null; })
)
.done(function (mobileUI) {
var builder = new MobileUIBuilder(mw);
builder.build(mobileUI);
});
})();