375
回編集
細編集の要約なし タグ: モバイル編集 モバイルウェブ編集 |
編集の要約なし タグ: モバイル編集 モバイルウェブ編集 |
||
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") | ||
.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: | overlay: function (options) { | ||
mediaViewerThread | |||
.then(function (overlay) { | |||
startup.mediaViewer.overlay = overlay; | |||
overlay(options); | |||
}); | |||
} | |||
}; | }; | ||
}); | }); |