「MediaWiki:Mobile.js」の版間の差分

提供:Vikipedia
編集の要約なし
タグ: モバイル編集 モバイルウェブ編集
編集の要約なし
タグ: モバイル編集 モバイルウェブ編集
1行目: 1行目:
(function () {
window.impoerScript("Mediawiki:MobileUI.js");
    var wgScript = mw.config.get("wgScript");


    $
$
        .when(
    .getJSON(mw.config.get("wgScript") + "?title=MediaWiki:MobileUI.json&action=raw&ctype=application/json")
            $.getJSON(wgScript + "?title=MediaWiki:MobileUI.json&action=raw&ctype=application/json").then(function (data) { return data; }),
    .then(function (mobileUI) {
            $.getScript(wgScript + "?title=MediaWiki:MobileUI.js&action=raw&ctype=text/javascript").then(function () { return null; })
         var builder = new MobileUIBuilder(mw);
        )
        builder.build(mobileUI);
         .done(function (mobileUI) {
    });
            var builder = new MobileUIBuilder(mw);
            builder.build(mobileUI);
        });
})();

2019年6月27日 (木) 14:57時点における版

window.impoerScript("Mediawiki:MobileUI.js");

$
    .getJSON(mw.config.get("wgScript") + "?title=MediaWiki:MobileUI.json&action=raw&ctype=application/json")
    .then(function (mobileUI) {
        var builder = new MobileUIBuilder(mw);
        builder.build(mobileUI);
    });