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

編集の要約なし
編集の要約なし
タグ: モバイル編集 モバイルウェブ編集
編集の要約なし
タグ: モバイル編集 モバイルウェブ編集
1行目: 1行目:
(function () {
(function () {
    var mediaViewerThread = mw.loader
        .using("mobile.mediaViewer")
        .then(function () {
            return mw.mobileFrontend.require("mobile.mediaViewer/ImageOverlay");
        });
     mw.loader
     mw.loader
         .using([
         .using("mobile.startup")
            "mobile.startup",
            "mobile.mediaViewer"
        ])
         .then(function () {
         .then(function () {
             var startup = mw.mobileFrontend.require("mobile.startup");
             var startup = mw.mobileFrontend.require("mobile.startup");
12行目: 14行目:
             }
             }
             startup.mediaViewer = {
             startup.mediaViewer = {
                 overlay: mw.mobileFrontend.require("mobile.mediaViewer/ImageOverlay")
                 overlay: function (options) {
                    mediaViewerThread
                        .then(function (overlay) {
                            startup.mediaViewer.overlay = overlay;
                            overlay(options);
                        });
                }
             };
             };
         });
         });