/* nanogallery2 - v1.4.1 - 2017-08-31 - http://nanogallery2.nanostudio.org */ /**! * @preserve nanogallery2 - javascript image gallery * Homepage: http://nanogallery2.nanostudio.org * Sources: https://github.com/nanostudio-org/nanogallery2 * * License: GPLv3 and commercial licence * * Requirements: * - jQuery (http://www.jquery.com) - version >= 1.7.1 * * Components: * - shifty (https://github.com/jeremyckahn/shifty) - is embeded * - TinyColor (https://github.com/bgrins/TinyColor) - is embedded * - imagesloaded (https://github.com/desandro/imagesloaded) - is embebed * - hammer.js (http://hammerjs.github.io/) - is embeded * - screenfull.js (https://github.com/sindresorhus/screenfull.js) - is embeded * - webfont generated with http://fontello.com - mainly based on Font Awesome Copyright (C) 2012 by Dave Gandy (http://fontawesome.io/) * - ICO online converter: https://iconverticons.com/online/ */ !function(a){"use strict";function b(){function b(a,b,c){this.thumbnailIdx=a,this.width=0,this.height=0,this.top=0,this.left=0,this.row=0,this.imageWidth=b,this.imageHeight=c,this.resizedContentWidth=0,this.resizedContentHeight=0,this.displayed=!1,this.neverDisplayed=!0,this.inDisplayArea=!1}function c(a){this.imageIdx=a,this.imageNumber=0}function d(){if(rb.albumListHidden.length>0)return void jQuery.nanogallery2["data_"+rb.O.kind](rb,"GetHiddenAlbums",rb.albumListHidden,e);db()||e()}function e(){if(""!=rb.O.openOnStart){var a=f(rb.O.openOnStart);"0"!=a.imageID?V(a.imageID,a.albumID):g("-1",a.albumID)}else g("-1",0)}function f(a){var b={albumID:"0",imageID:"0"},c=a.split("/");return c.length>0&&(b.albumID=c[0],c.length>1&&(b.imageID=c[1])),b}function g(a,b){rb.VOM.viewerDisplayed&&Ya(null);var c=NGY2Item.GetIdx(rb,b);if(rb.GOM.curNavLevel=0==c?"l1":"lN",rb.galleryResizeEventEnabled=!1,-1==c&&(NGY2Item.New(rb,"","",b,"0","album"),c=rb.I.length-1),!rb.I[c].contentIsLoaded)return void W(b,g,a,b);pa(),rb.GOM.pagination.currentPage=0,eb(b,""),r(c)}function h(){switch(rb.galleryDisplayMode.Get()){case"PAGINATION":rb.layout.support.rows&&rb.galleryMaxRows.Get()>0&&m(rb.GOM.albumIdx);break;case"MOREBUTTON":rb.$E.conTnBottom.off("click");var a=rb.GOM.items.length-rb.GOM.itemsDisplayed;0==a?rb.$E.conTnBottom.empty():(rb.$E.conTnBottom.html('
nanogallery2: "+c+" ["+b.baseEltID+"]
"))},a.NanoConsoleLog=function(a,b){window.console&&console.log("nanogallery2: "+b+" ["+a.baseEltID+"]")},a.PreloaderDisplay=function(a){!0===a?this.$E.conLoadingB.removeClass("nanoGalleryLBarOff").addClass("nanoGalleryLBar"):this.$E.conLoadingB.removeClass("nanoGalleryLBar").addClass("nanoGalleryLBarOff")},a.AreaShuffle=function(a){for(var b,c,d=a.length;d;b=Math.floor(Math.random()*d),c=a[--d],a[d]=a[b],a[b]=c);return a},a.GetImageTitleFromURL=function(a){if("%filename"==this.O.thumbnailLabel.get("title"))return a.split("/").pop().replace("_"," ");if("%filenameNoExt"==this.O.thumbnailLabel.get("title")){return a.split("/").pop().split(".").shift().replace("_"," ")}return""},a.AlbumPostProcess=function(b){var c=this.gallerySorting[this.GOM.curNavLevel],d=this.galleryMaxItems[this.GOM.curNavLevel];if(""!=c||d>0){var e=this.I.filter(function(a){return a.albumID==b&&"albumUp"!=a.kind});switch(c){case"RANDOM":e=a.AreaShuffle(e);break;case"REVERSED":e=e.reverse();break;case"TITLEASC":e.sort(function(a,b){return a.title.toUpperCase()