/** * Galleria - v1.6.1 2019-10-17 * * * Copyright (c) 2010 - 2019 worse is better UG * Licensed under the MIT License. */ !function(a,b){"function"==typeof define&&define.amd?define(["../galleria","jquery"],function(c,d){return b(a,c,d)}):"object"==typeof module&&module.exports?module.exports=b(a,require("galleria"),require("jquery")):b(a,a.Galleria,a.jQuery)}(window,function(a,b,c){return b.addTheme({name:"miniml",version:1.6,author:"Galleria",css:"galleria.miniml.css",defaults:{transition:"pulse",thumbCrop:!0,imageCrop:!0,carousel:!1,imagePan:!0,clicknext:!0,_locale:{enter_fullscreen:"Enter fullscreen",exit_fullscreen:"Exit fullscreen",click_to_close:"Click to close",show_thumbnails:"Show thumbnails",show_info:"Show info"}},init:function(a){b.requires(1.6,"This version of Miniml theme requires Galleria version 1.6 or later");var d,e,f,g,h=this,i=!1,j=0;this.addElement("desc","dots","thumbs","fs","more"),this.append({container:["desc","dots","thumbs","fs","info-description","more"]}),g=this.$("thumbnails-container").hide().css("visibility","visible");for(d=0;d").html("•").on("click:fast",function(a){return function(b){b.preventDefault(),h.show(a)}}(a))}(d));j=this.$("dots").outerWidth(),e=this.$("desc").hide().hover(function(){c(this).addClass("hover")},function(){c(this).removeClass("hover")}).on("click:fast",function(){c(this).hide()}),f=this.$("loader"),this.bindTooltip({fs:function(){return i?a._locale.exit_fullscreen:a._locale.enter_fullscreen},desc:a._locale.click_to_close,more:a._locale.show_info,thumbs:a._locale.show_thumbnails}),this.bind("loadstart",function(a){a.cached||this.$("loader").show().fadeTo(200,.4)}),this.bind("loadfinish",function(b){var c=h.getData().title,d=h.getData().description;f.fadeOut(200),this.$("dots").children("div").eq(b.index).addClass("active").siblings(".active").removeClass("active"),c&&d?(e.empty().append(""+c+"","

"+d+"

"),this.$("more").show()):this.$("more").hide(),g.fadeOut(a.fadeSpeed),h.$("thumbs").removeClass("active")}),this.bind("thumbnail",function(a){c(a.thumbTarget).hover(function(){h.setInfo(a.index)},function(){h.setInfo()})}),this.$("fs").on("click:fast",function(){h.toggleFullscreen(),i=!i}),this.$("thumbs").on("click:fast",function(a){a.preventDefault(),g.toggle(),c(this).toggleClass("active"),e.hide()}),this.$("more").on("click:fast",function(){e.toggle()}),this.$("info").css({width:this.getStageWidth()-j-30,left:j+10})}}),b});