2017-08-23 19:40:27 +00:00
|
|
|
kodReady.push(function(){
|
2017-12-01 12:24:53 +00:00
|
|
|
if( !$.supportCanvas() ){
|
|
|
|
return;
|
|
|
|
}
|
2017-08-23 19:40:27 +00:00
|
|
|
kodApp.add({
|
|
|
|
name:"photoSwipe",
|
|
|
|
title:"photoSwipe Image",
|
|
|
|
ext:"{{config.fileExt}}",
|
|
|
|
sort:"{{config.fileSort}}",
|
|
|
|
icon:"x-item-file x-jpg",
|
|
|
|
callback:function(imagePath,ext){
|
|
|
|
var appStatic = "{{pluginHost}}static/";
|
|
|
|
var appStaticDefault = "{{pluginHostDefault}}static/";
|
2018-07-05 13:50:52 +00:00
|
|
|
require.async(appStatic+'page.js?ver='+G.version,function(app){
|
2017-08-23 19:40:27 +00:00
|
|
|
app(imagePath,appStatic,appStaticDefault)
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
2018-07-05 13:50:52 +00:00
|
|
|
if(isWap()){
|
|
|
|
$.addStyle(".pswp--supports-fs .pswp__button--fs{display:none !important;}")
|
|
|
|
}
|
2017-08-23 19:40:27 +00:00
|
|
|
});
|