diff --git a/dist/css/nanogallery2.min.css b/dist/css/nanogallery2.min.css
index 629fff14..05dc88c9 100644
--- a/dist/css/nanogallery2.min.css
+++ b/dist/css/nanogallery2.min.css
@@ -1,2 +1,2 @@
-/* nanogallery2 - v3.0.4 - 2020-12-25 */
+/* nanogallery2 - v3.0.5 - 2021-01-06 */
.nGY2{box-sizing:content-box;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;-o-box-sizing:content-box}.nGY2 .ngy2_container{width:100%;min-width:100px;font-size:1em;line-height:normal;padding:0;margin:0 auto;overflow:hidden;visibility:visible;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.nGY2_body_scrollbar{overflow:hidden}@font-face{font-family:ngy2_icon_font;src:url(font/ngy2_icon_font.woff2?64889571) format('woff2'),url(font/ngy2_icon_font.woff?64889571) format('woff');font-weight:400;font-style:normal}.nGY2Icon-star:before{content:'\e801'}.nGY2Icon-search:before{content:'\e800'}.nGY2Icon-star-empty:before{content:'\e802'}.nGY2Icon-video:before{content:'\e803'}.nGY2Icon-videocam:before{content:'\e804'}.nGY2Icon-picture:before{content:'\e805'}.nGY2Icon-camera:before{content:'\e806'}.nGY2Icon-camera-alt:before{content:'\e807'}.nGY2Icon-ok:before{content:'\e808'}.nGY2Icon-help:before{content:'\e80a'}.nGY2Icon-help-circled:before{content:'\e80b'}.nGY2Icon-home:before{content:'\e80e'}.nGY2Icon-link:before{content:'\e80f'}.nGY2Icon-link-ext:before{content:'\e810'}.nGY2Icon-heart:before{content:'\e811'}.nGY2Icon-ngy2_chevron-right:before{content:'\e812'}.nGY2Icon-upload:before{content:'\e814'}.nGY2Icon-reply-all:before{content:'\e815'}.nGY2Icon-export:before{content:'\e816'}.nGY2Icon-chat:before{content:'\e818'}.nGY2Icon-attention:before{content:'\e819'}.nGY2Icon-location:before{content:'\e81a'}.nGY2Icon-trash:before{content:'\e81b'}.nGY2Icon-folder-empty:before{content:'\e81c'}.nGY2Icon-folder-open-empty:before{content:'\e81d'}.nGY2Icon-menu:before{content:'\e81e'}.nGY2Icon-cog:before{content:'\e81f'}.nGY2Icon-cog-alt:before{content:'\e820'}.nGY2Icon-wrench:before{content:'\e821'}.nGY2Icon-lightbulb:before{content:'\e822'}.nGY2Icon-resize-full:before{content:'\e823'}.nGY2Icon-resize-small:before{content:'\e824'}.nGY2Icon-left-open:before{content:'\e827'}.nGY2Icon-right-open:before{content:'\e828'}.nGY2Icon-arrows-cw:before{content:'\e829'}.nGY2Icon-level-up:before{content:'\e82a'}.nGY2Icon-play:before{content:'\e82b'}.nGY2Icon-pause:before{content:'\e82c'}.nGY2Icon-ngy2_chevron-left:before{content:'\e82d'}.nGY2Icon-ellipsis-vert:before{content:'\e82e'}.nGY2Icon-toggle-off:before{content:'\e82f'}.nGY2Icon-toggle-on:before{content:'\e830'}.nGY2Icon-check:before{content:'\e831'}.nGY2Icon-check-empty:before{content:'\e832'}.nGY2Icon-rocket:before{content:'\e833'}.nGY2Icon-filter:before{content:'\e834'}.nGY2Icon-magic:before{content:'\e835'}.nGY2Icon-pinterest-squared:before{content:'\e836'}.nGY2Icon-gplus-squared:before{content:'\e837'}.nGY2Icon-facebook-squared:before{content:'\e838'}.nGY2Icon-basket:before{content:'\e839'}.nGY2Icon-ok-circled:before{content:'\e83a'}.nGY2Icon-user:before{content:'\e83b'}.nGY2Icon-ngy2_chevron_left3:before{content:'\e83c'}.nGY2Icon-ngy2_chevron_right3:before{content:'\e83d'}.nGY2Icon-zoom-out-1:before{content:'\e83e'}.nGY2Icon-ngy2_zoom_out2:before{content:'\e83f'}.nGY2Icon-ngy2_zoom_in2:before{content:'\e840'}.nGY2Icon-ngy2_share2:before{content:'\e841'}.nGY2Icon-ngy2_external2:before{content:'\e842'}.nGY2Icon-ngy2_close2:before{content:'\e843'}.nGY2Icon-ngy2_info2:before{content:'\e844'}.nGY2Icon-ngy2_chevron_up2:before{content:'\e845'}.nGY2Icon-ngy2_download2:before{content:'\e846'}.nGY2Icon-mail-alt:before{content:'\f0e0'}.nGY2Icon-circle-empty:before{content:'\f10c'}.nGY2Icon-tumblr-squared:before{content:'\f174'}.nGY2Icon-twitter-squared:before{content:'\f304'}.nGY2Icon-youtube-play:before{content:'\f16a'}.nGY2Icon-vkontakte:before{content:'\f189'}.nGY2Icon-cw:before{content:'\e809'}.nGY2Icon-ccw:before{content:'\e80c'}[class^=nGY2Icon-]{margin-left:.2em;margin-right:.3em;font-family:ngy2_icon_font;font-style:normal;font-weight:400;speak:none;display:inline-block;text-decoration:inherit;text-align:center;font-variant:normal;text-transform:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-o-box-sizing:border-box}.nGY2Navigationbar{margin:5px 0;padding:5px 0;display:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-o-box-sizing:border-box}.nGY2Navigationbar .nGY2NavigationbarItem{margin:5px 2px;padding:8px 10px;white-space:nowrap;cursor:pointer;display:inline-block;vertical-align:middle;text-align:left;visibility:'hidden';box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-o-box-sizing:border-box}.nGY2Navigationbar .oneItem{margin:0 5px;white-space:nowrap;vertical-align:middle;display:inline-block}.nGY2 .nGY2Gallery{position:relative;text-align:center;margin:0 auto;overflow:hidden;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-o-box-sizing:border-box}.nGY2 .nGY2GallerySub{perspective:900px;text-align:left;position:relative;width:100%;height:100%;overflow:hidden;display:inline-block;z-index:1;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-o-box-sizing:border-box}.nGY2 .nGY2GThumbnail,.nGY2 .nGY2GThumbnailStack{display:inline-block;position:absolute;box-sizing:border-box;border:0 solid #000;padding:0;overflow:hidden;cursor:pointer}.nGY2 .nGY2GThumbnail{background-color:#000;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-o-box-sizing:border-box}.nGY2 .nGY2GThumbnailStack{background-color:#888;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-o-box-sizing:border-box}.nGY2 .nGY2GThumbnailSub{width:100%;height:100%;display:block;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-o-box-sizing:border-box;border:0 solid #000;margin:0;padding:0;overflow:hidden}.nGY2 .nGY2GThumbnailSubSelected{-webkit-transform:scale(.9);-ms-transform:scale(.9);transform:scale(.9)}.nGY2 .nGY2GThumbnailImage{position:relative;overflow:hidden;background:#000;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-o-box-sizing:border-box}.nGY2 .nGY2GThumbnailImg{background:url(data:image/gif;base64,R0lGODlhEAAQAIAAAP///////yH5BAEKAAEALAAAAAAQABAAAAIOjI+py+0Po5y02ouzPgUAOw==) center no-repeat;position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;display:block;vertical-align:bottom;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-o-box-sizing:border-box}.nGY2 .nGY2GThumbnailAnnotationOLD_NO_MORE_USED{background:rgba(34,34,34,.75);opacity:1;text-align:left;left:0;right:0;padding:1px;position:absolute;min-height:18px;overflow:hidden;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-o-box-sizing:border-box}.nGY2 .nGY2GThumbnailCustomLayer{position:absolute;display:block;top:0;bottom:0;left:0;right:0;overflow:hidden;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-o-box-sizing:border-box}.nGY2 .nGY2GThumbnailLabel{display:block;background:rgba(34,34,34,.75);left:0;right:0;padding:4px;margin:0;position:absolute;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-o-box-sizing:border-box}.nGY2 .nGY2GThumbnailAlbumTitle,.nGY2 .nGY2GThumbnailDescription,.nGY2 .nGY2GThumbnailImageTitle{left:0;box-sizing:border-box;padding:0;Text-Shadow:#000 1px 0 0,#000 1px 1px 0,#000 1px -1px 0,#000 -1px 1px 0,#000 -1px 0 0,#000 -1px -1px 0,#000 0 1px 0,#000 0 -1px 0;right:0}.nGY2 .nGY2GThumbnailAlbumTitle,.nGY2 .nGY2GThumbnailImageTitle{color:#fff;margin:5px 1px 1px;white-space:nowrap;overflow:hidden;display:inline-block;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-o-box-sizing:border-box}.nGY2 .nGY2GThumbnailDescription{clear:both;margin:1px 1px 3px;color:#aaa;white-space:nowrap;font-size:.8em;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-o-box-sizing:border-box}.nGY2 .nGY2GThumbnailIcons{margin:0;position:absolute;display:inline-block;padding:0;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-o-box-sizing:border-box}.nGY2 .nGY2GThumbnailIconsFullThumbnail{font-size:1.8em;color:#fff;Text-Shadow:#000 1px 0 0,#000 1px 1px 0,#000 1px -1px 0,#000 -1px 1px 0,#000 -1px 0 0,#000 -1px -1px 0,#000 0 1px 0,#000 0 -1px 0;padding:5px;position:absolute;top:50%;left:50%;-webkit-transform:translateX(-50%) translateY(-50%);-ms-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%);display:inline-block;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-o-box-sizing:border-box}.nGY2 .nGY2GThumbnailIconText,.nGY2 .nGY2GThumbnailIconTextBadge{position:relative;display:inline-block;margin:0;vertical-align:middle}.nGY2 .nGY2GThumbnailIcon{display:inline-block;padding:4px;margin:0;color:#fff;Text-Shadow:#000 1px 0 0,#000 1px 1px 0,#000 1px -1px 0,#000 -1px 1px 0,#000 -1px 0 0,#000 -1px -1px 0,#000 0 1px 0,#000 0 -1px 0;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-o-box-sizing:border-box}.nGY2 .nGY2GThumbnailIconTextBadge{background-color:#fff;border-radius:6px;-moz-border-radius:6px;-webkit-border-radius:6px;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-o-box-sizing:border-box}.nGY2 .nGY2GThumbnailIconText{box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-o-box-sizing:border-box}.nGY2 .nGY2GThumbnailAlbumUp i{position:absolute;top:50%;left:50%;margin:0;-webkit-transform:translateY(-50%) translateX(-50%);-ms-transform:translateY(-50%) translateX(-50%);transform:translateY(-50%) translateX(-50%)}.nGY2 .nGY2GThumbnailAlbumUp{color:#eee;font-size:1.2em;top:0;bottom:0;left:0;right:0;display:table;width:100%;text-align:center;position:absolute;margin:auto;padding:0;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-o-box-sizing:border-box}.nGY2 .nGY2GThumbnailLoaderDisplayed:after,.nGY2 .nGY2GThumbnailLoaderDisplayed:before{display:block;position:absolute;border-style:solid;margin:auto;top:0;left:0;bottom:0;right:0;content:"";border-radius:50%}.nGY2 .nGY2GThumbnailLoaderDisplayed{visibility:visible;opacity:.8;position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;zoom:1;user-drag:none;user-select:none;-moz-user-select:none;-webkit-user-drag:none;-webkit-user-select:none;-ms-user-select:none;width:40px;height:40px}.nGY2 .nGY2GThumbnailLoaderDisplayed:before{border-width:7px;width:24px;height:24px;animation:nGY2-thumbnail-spinner-rotate-animation 1s linear 0s infinite;border-color:#888 #000 #000 #888}.nGY2 .nGY2GThumbnailLoaderDisplayed:after{border-width:4px;width:16px;height:16px;animation:nGY2-thumbnail-spinner-anti-rotate-animation .8s linear 0s infinite;border-color:#666 #111 #111 #666}@keyframes nGY2-thumbnail-spinner-rotate-animation{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes nGY2-thumbnail-spinner-anti-rotate-animation{0%{transform:rotate(0)}100%{transform:rotate(-360deg)}}.nGY2 .nGY2GalleryBottom{margin:0;padding:0;text-align:center;position:relative;overflow:hidden;white-space:nowrap}.nGY2 .nGY2GalleryMoreButton,.nGY2 .nGY2GalleryMoreButtonAnnotation,.nGY2 .nGY2GalleryPagination,.nGY2 .nGY2GalleryPaginationDot{margin:10px auto 5px;text-align:center;position:relative;white-space:nowrap;overflow:hidden}.nGY2 .nGY2GalleryMoreButton{padding:4px;display:inline-block;cursor:pointer}.nGY2 .nGY2GalleryMoreButtonAnnotation{border:1px solid #fff;padding:8px 20px;display:inline-block}.nGY2 .nGY2GalleryPagination,.nGY2 .nGY2GalleryPaginationDot{padding:4px}.nGY2 .nGY2PaginationNext,.nGY2 .nGY2PaginationPrev,.nGY2 .nGY2paginationItem,.nGY2 .nGY2paginationItemCurrentPage{margin:10px 4px;padding:5px 8px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;background:#111;white-space:nowrap;cursor:pointer;vertical-align:middle;display:inline-block}.nGY2 .nGY2paginationItemCurrentPage{background:#333}.nGY2 .nGY2paginationDot,.nGY2 .nGY2paginationDotCurrentPage{width:16px;height:16px;border:2px solid #fff;background:#444;border-radius:50%;margin:12px 5px;white-space:nowrap;cursor:pointer;vertical-align:middle;display:inline-block;opacity:.5}.nGY2 .nGY2paginationDotCurrentPage{background:#fff;opacity:1}.nGY2 .nGY2paginationRectangle,.nGY2 .nGY2paginationRectangleCurrentPage{width:30px;border:1px solid #fff;height:0;background:#444;margin:5px 1px;white-space:nowrap;cursor:pointer;vertical-align:middle;display:inline-block;opacity:.5}.nGY2 .nGY2paginationRectangleCurrentPage{background:#fff;opacity:1}.nGY2Popup{position:fixed;color:#000;top:0;left:0;bottom:0;right:0;background:rgba(0,0,0,.5)}.nGY2PopupContent,.nGY2PopupContentCenter,.nGY2PopupContentLeft,.nGY2PopupContentRight{position:fixed;text-align:left;top:50%;left:50%;padding:15px 30px;height:auto;width:50%;background:#fff;-webkit-transform:translateX(-50%) translateY(-50%);-moz-transform:translateX(-50%) translateY(-50%);-ms-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%)}@media screen and (max-width:992px){.nGY2PopupContent,.nGY2PopupContentCenter,.nGY2PopupContentLeft,.nGY2PopupContentRight{width:95%;padding:5px 10px}}.nGY2 .nGY2Viewer,.nGY2 .nGY2ViewerContainer{top:0;height:100%;width:100%;left:0;position:fixed}.nGY2PopupContentCenter{text-align:center}.nGY2PopupTitle{font-size:1.5em;border-bottom:4px solid #888;padding:0 0 5px;margin-bottom:10px}.nGY2PopupCloseButton{font-size:1.5em;cursor:pointer;text-align:right}.nGY2PopupOneItem{padding:10px;font-size:2em;cursor:pointer;display:inline-block}.nGY2PopupOneItemText{padding:10px;font-size:1.2em;cursor:pointer;display:block}.nGY2PortInfo{padding:3px!important;font-size:14px!important;color:#FF0075!important;text-align:center!important;z-index:0!important;text-transform:lowercase!important;cursor:pointer!important}.nGY2PortInfo a,.nGY2PortInfo a:active,.nGY2PortInfo a:hover,.nGY2PortInfo>a:link,.nGY2PortInfo>a:visited{color:#FF0075!important;text-decoration:none!important}.nGY2 .nGY2ViewerContainer{opacity:0}.nGY2 .nGY2Viewer{display:block;visibility:visible;opacity:1;background-color:rgba(1,1,1,.85);text-align:center;clear:both;user-drag:none;user-select:none;-moz-user-select:none;-webkit-user-drag:none;-webkit-user-select:none;-ms-user-select:none}.nGY2 .nGY2ViewerLogo{text-align:center;float:left;position:relative;top:50px;left:5px;padding:2px;background:url(nanogallery2_logo.png) center no-repeat;display:block;height:74px;width:147px}.nGY2 .nGY2ViewerContent{min-width:40px;min-height:40px;position:absolute;clear:both;user-drag:none;user-select:none;-moz-user-select:none;-webkit-user-drag:none;-webkit-user-select:none;-ms-user-select:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-o-box-sizing:border-box;overflow:hidden}.nGY2 .nGY2ViewerMediaPan{transform-origin:50% 50% 0;visibility:visible;opacity:1;position:absolute;display:inline-block;padding:0;top:0;bottom:0;left:0;right:0;margin:auto;zoom:1;user-drag:none;user-select:none;-moz-user-select:none;-webkit-user-drag:none;-webkit-user-select:none;-ms-user-select:none;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-o-box-sizing:border-box}.nGY2 .nGY2ViewerMedia,.nGY2 .nGY2ViewerMediaLoaderHidden{visibility:visible;bottom:0;margin:auto;zoom:1;box-sizing:border-box;left:0;right:0}.nGY2 .nGY2ViewerMedia{max-width:none;opacity:1;will-change:transform;transform:translateZ(0);position:absolute;top:0;user-drag:none;user-select:none;-moz-user-select:none;-webkit-user-drag:none;-webkit-user-select:none;-ms-user-select:none;pointer-events:none;padding:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-o-box-sizing:border-box}.nGY2 iframe.nGY2ViewerMedia,.nGY2 video.nGY2ViewerMedia{pointer-events:auto}.nGY2 .nGY2ViewerMediaLoaderDisplayed{visibility:visible;opacity:1;position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;zoom:1;user-drag:none;user-select:none;-moz-user-select:none;-webkit-user-drag:none;-webkit-user-select:none;-ms-user-select:none;width:50px;height:50px}.nGY2 .nGY2ViewerMediaLoaderDisplayed:before{top:0;bottom:0;left:0;right:0;margin:auto;content:"";display:block;position:absolute;border-width:7px;border-style:solid;border-radius:50%;width:38px;height:38px;animation:nGY2-spinner-rotate-animation 1s linear 0s infinite;border-color:#444 #23CB99 #23CB99 #444}.nGY2 .nGY2ViewerMediaLoaderDisplayed:after{content:"";display:block;position:absolute;border-width:4px;border-style:solid;border-radius:50%;width:24px;height:24px;top:0;bottom:0;left:0;right:0;margin:auto;animation:nGY2-spinner-anti-rotate-animation .85s linear 0s infinite;border-color:#333 #23CB99 #23CB99 #333}@keyframes nGY2-spinner-rotate-animation{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes nGY2-spinner-anti-rotate-animation{0%{transform:rotate(0)}100%{transform:rotate(-360deg)}}.nGY2 .nGY2ViewerMediaLoaderHidden{opacity:0;position:absolute;top:0;user-drag:none;user-select:none;-moz-user-select:none;-webkit-user-drag:none;-webkit-user-select:none;-ms-user-select:none;background-image:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-o-box-sizing:border-box}.nGY2 .nGY2ViewerAreaNext>i,.nGY2 .nGY2ViewerAreaPrevious>i{font-weight:700!important;font-size:2em;Text-Shadow:#000 1px 0 0,#000 1px 1px 0,#000 1px -1px 0,#000 -1px 1px 0,#000 -1px 0 0,#000 -1px -1px 0,#000 0 1px 0,#000 0 -1px 0;background:rgba(0,0,0,.2)}.nGY2 .nGY2ViewerContent .imgCurrent{cursor:pointer}.nGY2 .nGY2ViewerAreaPrevious{color:#fff;display:block;position:absolute;top:50%;padding:10px 0 10px 5px;margin-top:-25px;left:0;text-align:left;cursor:pointer;opacity:1;user-drag:none;user-select:none;-moz-user-select:none;-webkit-user-drag:none;-webkit-user-select:none;-ms-user-select:none;transition:all .2s ease;-webkit-transition:all .2s ease;-moz-transition:all .2s ease;-o-transition:all .2s ease}.nGY2 .nGY2ViewerAreaPrevious>i{margin:0!important}.nGY2 .nGY2ViewerAreaNext{color:#fff;display:block;position:absolute;top:50%;padding:10px 5px 10px 0;margin-top:-25px;right:0;text-align:right;cursor:pointer;opacity:1;user-drag:none;user-select:none;-moz-user-select:none;-webkit-user-drag:none;-webkit-user-select:none;-ms-user-select:none;transition:all .2s ease;-webkit-transition:all .2s ease;-moz-transition:all .2s ease;-o-transition:all .2s ease}.nGY2 .nGY2ViewerToolsTopLeft,.nGY2 .nGY2ViewerToolsTopRight{top:5px;position:absolute;text-shadow:-1px -1px 0 #444,1px -1px 0 #444,-1px 1px 0 #444,1px 1px 0 #444;opacity:1;cursor:pointer}.nGY2 .nGY2ViewerAreaNext>i{margin:0!important}.nGY2 .toolbarContainer{left:0;right:0;text-align:center;display:inline-block;position:absolute;width:100%}.nGY2 .toolbar{display:inline-block;vertical-align:middle;overflow:hidden;padding:2px 0;margin:1px}.nGY2 .toolbar .label,.nGY2 .toolbar .ngbt,.nGY2 .toolbar .pageCounter{display:table-cell;vertical-align:middle}.nGY2 .toolbarBackground{background:rgba(4,4,4,.7)}.nGY2 .nGY2ViewerToolsTopLeft{color:#ddd;left:5px;transition:all .2s ease;-webkit-transition:all .2s ease;-moz-transition:all .2s ease;-o-transition:all .2s ease}.nGY2 .nGY2ViewerToolsTopRight{color:#ddd;right:5px;transition:all .2s ease;-webkit-transition:all .2s ease;-moz-transition:all .2s ease;-o-transition:all .2s ease}.nGY2 .toolbar .ngbt{font-size:1.2em;cursor:pointer;padding:2px 8px}.nGY2 .ngy2viewerToolAction{opacity:1}.nGY2 .ngy2viewerToolAction:hover{opacity:.8}.nGY2 .toolbar .pageCounter{font-size:1.2em;margin:auto;overflow:hidden}.nGY2 .toolbar .label{padding:3px 10px;border-left:0 solid #000;overflow:hidden;text-align:left;font-size:1em;background-color:initial}.nGY2 .toolbar .label .title{font-size:1.2em;margin:auto;vertical-align:middle;overflow:hidden}.nGY2 .toolbar .label .description{font-size:.9em;display:table-row;vertical-align:middle;overflow:hidden;color:#eee}.nGY2 .nGY2viewerGallery{overflow:hidden;position:fixed;display:none;opacity:0;bottom:5px}.nGY2 .nGY2viewerGallery .nGY2VThumbnailContainer{overflow:hidden;display:inline-block;position:absolute;top:0}.nGY2 .nGY2viewerGallery .nGY2VThumbnail{top:0;padding:0;border:1px solid #888;position:absolute;opacity:1;background-position:center center;background-repeat:no-repeat;background-size:cover;overflow:hidden}.nGY2 .nGY2viewerGallery .activeVThumbnail{border:2px solid #fff}.nGY2ConsoleParent{visibility:hidden;height:0;background:#111;color:#e00;padding:0;margin:2px}.nGY2ConsoleParent p{color:#e00;padding:1px;margin:0}.nGY2 .nanoGalleryLBar,.nGY2 .nanoGalleryLBarOff{position:relative;width:100%;margin:0 0 1px;background-color:#556;height:2px}.nGY2.unselectable{-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;user-select:none}.nGY2 .nanoGalleryLBarOff{visibility:hidden}.nGY2 .nanoGalleryLBar{visibility:visible}.nGY2 .nanoGalleryLBar>div{position:absolute;width:50px;height:2px;top:0;opacity:.7}.nGY2 .nanoGalleryLBar>div:nth-child(1){-webkit-animation:nanoGalleryLBarAnim 2s -.2s infinite cubic-bezier(0,.6,.9,0);-moz-animation:nanoGalleryLBarAnim 2s -.2s infinite cubic-bezier(0,.6,.9,0);-ms-animation:nanoGalleryLBarAnim 2s -.2s infinite cubic-bezier(0,.6,.9,0);-o-animation:nanoGalleryLBarAnim 2s -.2s infinite cubic-bezier(0,.6,.9,0);animation:nanoGalleryLBarAnim 2s -.2s infinite cubic-bezier(0,.6,.9,0);background:#111}.nGY2 .nanoGalleryLBar>div:nth-child(2){-webkit-animation:nanoGalleryLBarAnim 2s -.4s infinite cubic-bezier(0,.6,.9,0);-moz-animation:nanoGalleryLBarAnim 2s -.4s infinite cubic-bezier(0,.6,.9,0);-ms-animation:nanoGalleryLBarAnim 2s -.4s infinite cubic-bezier(0,.6,.9,0);-o-animation:nanoGalleryLBarAnim 2s -.4s infinite cubic-bezier(0,.6,.9,0);animation:nanoGalleryLBarAnim 2s -.4s infinite cubic-bezier(0,.6,.9,0);background:#333}.nGY2 .nanoGalleryLBar>div:nth-child(3){-webkit-animation:nanoGalleryLBarAnim 2s -.6s infinite cubic-bezier(0,.6,.9,0);-moz-animation:nanoGalleryLBarAnim 2s -.6s infinite cubic-bezier(0,.6,.9,0);-ms-animation:nanoGalleryLBarAnim 2s -.6s infinite cubic-bezier(0,.6,.9,0);-o-animation:nanoGalleryLBarAnim 2s -.6s infinite cubic-bezier(0,.6,.9,0);animation:nanoGalleryLBarAnim 2s -.6s infinite cubic-bezier(0,.6,.9,0);background:#ccd}.nGY2 .nanoGalleryLBar>div:nth-child(4){-webkit-animation:nanoGalleryLBarAnim 2s -.8s infinite cubic-bezier(0,.6,.9,0);-moz-animation:nanoGalleryLBarAnim 2s -.8s infinite cubic-bezier(0,.6,.9,0);-ms-animation:nanoGalleryLBarAnim 2s -.8s infinite cubic-bezier(0,.6,.9,0);-o-animation:nanoGalleryLBarAnim 2s -.8s infinite cubic-bezier(0,.6,.9,0);animation:nanoGalleryLBarAnim 2s -.8s infinite cubic-bezier(0,.6,.9,0);background:#777}.nGY2 .nanoGalleryLBar>div:nth-child(5){-webkit-animation:nanoGalleryLBarAnim 2s -1s infinite cubic-bezier(0,.6,.9,0);-moz-animation:nanoGalleryLBarAnim 2s -1s infinite cubic-bezier(0,.6,.9,0);-ms-animation:nanoGalleryLBarAnim 2s -1s infinite cubic-bezier(0,.6,.9,0);-o-animation:nanoGalleryLBarAnim 2s -1s infinite cubic-bezier(0,.6,.9,0);animation:nanoGalleryLBarAnim 2s -1s infinite cubic-bezier(0,.6,.9,0);background:#ddd}@-webkit-keyframes nanoGalleryLBarAnim{0%{left:10%}100%{left:90%}}@-moz-keyframes nanoGalleryLBarAnim{0%{left:10%}100%{left:90%}}@-ms-keyframes nanoGalleryLBarAnim{0%{left:10%}100%{left:90%}}@-o-keyframes nanoGalleryLBarAnim{0%{left:10%}100%{left:90%}}@keyframes nanoGalleryLBarAnim{0%{left:10%}100%{left:90%}}.NGY2ThumbnailLightbox{cursor:pointer}
\ No newline at end of file
diff --git a/dist/jquery.nanogallery2.core.min.js b/dist/jquery.nanogallery2.core.min.js
index 5a433adb..54834535 100644
--- a/dist/jquery.nanogallery2.core.min.js
+++ b/dist/jquery.nanogallery2.core.min.js
@@ -1,4 +1,4 @@
-/* nanogallery2 - v3.0.4 - 2020-12-25 */
+/* nanogallery2 - v3.0.5 - 2021-01-06 */
/*!
* @preserve nanogallery2 - javascript photo / video gallery and lightbox
* Homepage: http://nanogallery2.nanostudio.org
@@ -18,20 +18,33 @@
* - 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(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports&&"function"==typeof require?e(require("jquery")):e(jQuery)}((function(e){"use strict";function t(e){var t=document.getElementById("ngyColorHelperToRGB");return null===t&&((t=document.createElement("div")).id="ngyColorHelperToRGB",t.style.cssText="display: none; color:"+e+";",document.body.appendChild(t)),getComputedStyle(t).color}function n(e,t,n){var i="";if("RGBA("==t.toUpperCase().substring(0,5)&&(i="a",t="rgb("+t.substring(5)),"number"!=typeof e||e<-1||e>1||"string"!=typeof t||"r"!=t[0]&&"#"!=t[0]||"string"!=typeof n&&void 0!==n)return null;function a(e){var t=e.length,n=new Object;if(t>9){if((e=e.split(",")).length<3||e.length>4)return null;n[0]=o(e[0].slice(4)),n[1]=o(e[1]),n[2]=o(e[2]),n[3]=e[3]?parseFloat(e[3]):-1}else{if(8==t||6==t||t<4)return null;t<6&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+(t>4?e[4]+""+e[4]:"")),e=o(e.slice(1),16),n[0]=e>>16&255,n[1]=e>>8&255,n[2]=255&e,n[3]=9==t||5==t?r((e>>24&255)/255*1e4)/1e4:-1}return n}var o=parseInt,r=Math.round,l=t.length>9,s=(l="string"==typeof n?n.length>9||"c"==n&&!l:l,e<0),u=(e=s?-1*e:e,n=n&&"c"!=n?n:s?"#000000":"#FFFFFF",a(t)),c=a(n);return u&&c?l?"rgb"+i+"("+r((c[0]-u[0])*e+u[0])+","+r((c[1]-u[1])*e+u[1])+","+r((c[2]-u[2])*e+u[2])+(u[3]<0&&c[3]<0?")":","+(u[3]>-1&&c[3]>-1?r(1e4*((c[3]-u[3])*e+u[3]))/1e4:c[3]<0?u[3]:c[3])+")"):"#"+(4294967296+16777216*(u[3]>-1&&c[3]>-1?r(255*((c[3]-u[3])*e+u[3])):c[3]>-1?r(255*c[3]):u[3]>-1?r(255*u[3]):255)+65536*r((c[0]-u[0])*e+u[0])+256*r((c[1]-u[1])*e+u[1])+r((c[2]-u[2])*e+u[2])).toString(16).slice(u[3]>-1||c[3]>-1?1:3):null}function i(e){if(null===e||"object"!=typeof e)return e;var t=e.constructor();for(var n in e)t[n]=i(e[n]);return t}function a(){var e=jQuery(window);return{l:e.scrollLeft(),t:e.scrollTop(),w:e.width(),h:e.height()}}function o(e,t){var n=0;""==e&&(e="*"),jQuery(e).each((function(){var e=parseInt(jQuery(this).css("z-index"));n=e>n?e:n})),n++,jQuery(t).css("z-index",n)}var r=function(e){return{}.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase()};function l(){this.LightboxReOpen=function(){m()},this.ReloadAlbum=function(){if(""===u.O.kind)throw"Not supported for this content source:"+u.O.kind;var e=u.GOM.albumIdx;if(-1==e)throw"Current album not found.";for(var t=u.I[e].GetID(),n=u.I.length,i=0;i1&&e--,u.GOM.pagination.currentPage=e,u.GOM.ScrollToTop(),L(),C(!0),!1},this.PaginationCountPages=function(){return 0==u.GOM.items.length?0:Math.ceil((u.GOM.items[u.GOM.items.length-1].row+1)/u.galleryMaxRows.Get())};var s=function(e,t,n){var i;return function(){var a=this,o=arguments;function r(){n||e.apply(a,o),i=null}i?clearTimeout(i):n&&e.apply(a,o),i=setTimeout(r,t||100)}};window.ng_draf=function(e){return requestAnimationFrame((function(){window.requestAnimationFrame(e)}))},window.requestTimeout=function(e,t){if(!(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame&&window.mozCancelRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame))return window.setTimeout(e,t);var n=(new Date).getTime(),i=new Object;return i.value=requestAnimFrame((function a(){(new Date).getTime()-n>=t?e.call():i.value=requestAnimFrame(a)})),i},window.requestAnimFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){window.setTimeout(e,1e3/60)},window.clearRequestTimeout=function(e){window.cancelAnimationFrame?window.cancelAnimationFrame(e.value):window.webkitCancelAnimationFrame?window.webkitCancelAnimationFrame(e.value):window.webkitCancelRequestAnimationFrame?window.webkitCancelRequestAnimationFrame(e.value):window.mozCancelRequestAnimationFrame?window.mozCancelRequestAnimationFrame(e.value):window.oCancelRequestAnimationFrame?window.oCancelRequestAnimationFrame(e.value):window.msCancelRequestAnimationFrame?window.msCancelRequestAnimationFrame(e.value):clearTimeout(e)};var u=this;function c(e){this.$e=null,this.ngy2ItemIdx=e,this.mediaNumber=u.VOM.items.length+1,this.posX=0,this.posY=0}u.I=[],u.Id=[],u.O=null,u.baseEltID=null,u.$E={base:null,conTnParent:null,conLoadingB:null,conConsole:null,conNavigationBar:null,conTnBottom:null,scrollableParent:null},u.shoppingCart=[],u.layout={internal:!0,engine:"",support:{rows:!1},prerequisite:{imageSize:!1},SetEngine:function(){if(u.layout.internal){if("auto"==u.tn.settings.width[u.GOM.curNavLevel][u.GOM.curWidth]||""==u.tn.settings.width[u.GOM.curNavLevel][u.GOM.curWidth])return u.layout.engine="JUSTIFIED",u.layout.support.rows=!0,void(u.layout.prerequisite.imageSize=!0);if("auto"==u.tn.settings.height[u.GOM.curNavLevel][u.GOM.curWidth]||""==u.tn.settings.height[u.GOM.curNavLevel][u.GOM.curWidth])return u.layout.engine="CASCADING",u.layout.support.rows=!1,void(u.layout.prerequisite.imageSize=!0);if(null!=u.tn.settings.getMosaic())return u.layout.engine="MOSAIC",u.layout.support.rows=!0,void(u.layout.prerequisite.imageSize=!1);u.layout.engine="GRID",u.layout.support.rows=!0,u.layout.prerequisite.imageSize=!1}}},u.galleryResizeEventEnabled=!1,u.galleryMaxRows={l1:0,lN:0,Get:function(){return u.galleryMaxRows[u.GOM.curNavLevel]}},u.galleryMaxItems={l1:0,lN:0,Get:function(){return u.galleryMaxItems[u.GOM.curNavLevel]}},u.galleryFilterTags={l1:0,lN:0,Get:function(){return u.galleryFilterTags[u.GOM.curNavLevel]}},u.galleryFilterTagsMode={l1:0,lN:0,Get:function(){return u.galleryFilterTagsMode[u.GOM.curNavLevel]}},u.galleryDisplayMode={l1:"FULLCONTENT",lN:"FULLCONTENT",Get:function(){return u.galleryDisplayMode[u.GOM.curNavLevel]}},u.galleryLastRowFull={l1:!1,lN:!1,Get:function(){return u.galleryLastRowFull[u.GOM.curNavLevel]}},u.gallerySorting={l1:"",lN:"",Get:function(){return u.gallerySorting[u.GOM.curNavLevel]}},u.galleryDisplayTransition={l1:"none",lN:"none",Get:function(){return u.galleryDisplayTransition[u.GOM.curNavLevel]}},u.galleryDisplayTransitionDuration={l1:500,lN:500,Get:function(){return u.galleryDisplayTransitionDuration[u.GOM.curNavLevel]}},u.$currentTouchedThumbnail=null,u.tn={opt:{l1:{crop:!0,stacks:0,stacksTranslateX:0,stacksTranslateY:0,stacksTranslateZ:0,stacksRotateX:0,stacksRotateY:0,stacksRotateZ:0,stacksScale:0,borderHorizontal:0,borderVertical:0,baseGridHeight:0,displayTransition:"FADEIN",displayTransitionStartVal:0,displayTransitionEasing:"easeOutQuart",displayTransitionDuration:240,displayInterval:15},lN:{crop:!0,stacks:0,stacksTranslateX:0,stacksTranslateY:0,stacksTranslateZ:0,stacksRotateX:0,stacksRotateY:0,stacksRotateZ:0,stacksScale:0,borderHorizontal:0,borderVertical:0,baseGridHeight:0,displayTransition:"FADEIN",displayTransitionStartVal:0,displayTransitionEasing:"easeOutQuart",displayTransitionDuration:240,displayInterval:15},Get:function(e){return u.tn.opt[u.GOM.curNavLevel][e]}},scale:1,labelHeight:{l1:0,lN:0,get:function(){return u.tn.labelHeight[u.GOM.curNavLevel]}},defaultSize:{width:{l1:{xs:0,sm:0,me:0,la:0,xl:0},lN:{xs:0,sm:0,me:0,la:0,xl:0}},height:{l1:{xs:0,sm:0,me:0,la:0,xl:0},lN:{xs:0,sm:0,me:0,la:0,xl:0}},getWidth:function(){return u.tn.defaultSize.width[u.GOM.curNavLevel][u.GOM.curWidth]},getOuterWidth:function(){u.tn.borderWidth=u.tn.opt.Get("borderHorizontal"),u.tn.borderHeight=u.tn.opt.Get("borderVertical");var e=u.tn.defaultSize.width[u.GOM.curNavLevel][u.GOM.curWidth]+2*u.tn.opt.Get("borderHorizontal");return"right"!=u.O.thumbnailLabel.get("position")&&"left"!=u.O.thumbnailLabel.get("position")||(e+=u.tn.defaultSize.width[u.GOM.curNavLevel][u.GOM.curWidth]),e},getHeight:function(){return u.tn.defaultSize.height[u.GOM.curNavLevel][u.GOM.curWidth]},getOuterHeight:function(){return u.tn.defaultSize.height[u.GOM.curNavLevel][u.GOM.curWidth]+2*u.tn.opt.Get("borderVertical")}},settings:{width:{l1:{xs:0,sm:0,me:0,la:0,xl:0,xsc:"u",smc:"u",mec:"u",lac:"u",xlc:"u"},lN:{xs:0,sm:0,me:0,la:0,xl:0,xsc:"u",smc:"u",mec:"u",lac:"u",xlc:"u"}},height:{l1:{xs:0,sm:0,me:0,la:0,xl:0,xsc:"u",smc:"u",mec:"u",lac:"u",xlc:"u"},lN:{xs:0,sm:0,me:0,la:0,xl:0,xsc:"u",smc:"u",mec:"u",lac:"u",xlc:"u"}},getH:function(e,t){var n=null==e?u.GOM.curNavLevel:e,i=null==t?u.GOM.curWidth:t;return"MOSAIC"==u.layout.engine?this.height[n][i]*this.mosaic[n+"Factor"].h[i]:this.height[n][i]},getW:function(e,t){var n=null==e?u.GOM.curNavLevel:e,i=null==t?u.GOM.curWidth:t;return"MOSAIC"==u.layout.engine?this.width[n][i]*this.mosaic[n+"Factor"].w[i]:this.width[n][i]},mosaic:{l1:{xs:null,sm:null,me:null,la:null,xl:null},lN:{xs:null,sm:null,me:null,la:null,xl:null},l1Factor:{h:{xs:1,sm:1,me:1,la:1,xl:1},w:{xs:1,sm:1,me:1,la:1,xl:1}},lNFactor:{h:{xs:1,sm:1,me:1,la:1,xl:1},w:{xs:1,sm:1,me:1,la:1,xl:1}}},getMosaic:function(){return this.mosaic[u.GOM.curNavLevel][u.GOM.curWidth]},mosaicCalcFactor:function(e,t){for(var n=1,i=1,a=0;at?(r&&(clearTimeout(r),r=null),l=u,o=e.apply(i,a),r||(i=a=null)):r||!1===n.trailing||(r=setTimeout(s,c)),o}}(x,15,{leading:!1}),u.blockList=null,u.allowList=null,u.albumList=[],u.locationHashLastUsed="",u.custGlobals={},u.touchAutoOpenDelayTimerID=0,u.i18nLang="",u.timeLastTouchStart=0,u.custGlobals={},u.markupOrApiProcessed=!1,u.GOM={albumIdx:-1,clipArea:{top:0,height:0},displayArea:{width:0,height:0},displayAreaLast:{width:0,height:0},displayedMoreSteps:0,items:[],$imgPreloader:[],thumbnails2Display:[],itemsDisplayed:0,firstDisplay:!0,firstDisplayTime:0,navigationBar:{displayed:!1,$newContent:""},cache:{viewport:null,containerOffset:null,areaWidth:100},nbSelected:0,pagination:{currentPage:0},panThreshold:60,panYOnly:!1,lastFullRow:-1,lastDisplayedIdx:-1,displayInterval:{from:0,len:0},hammertime:null,curNavLevel:"l1",curWidth:"me",albumSearch:"",albumSearchTags:"",lastZIndex:0,lastRandomValue:0,slider:{hostIdx:-1,hostItem:null,currentIdx:0,nextIdx:0,timerID:0,tween:null},NGY2Item:function(e){if(null==u.GOM.items[e]||null==u.GOM.items[e])return null;var t=u.GOM.items[e].thumbnailIdx;return u.I[t]},GTn:function(e,t,n){this.thumbnailIdx=e,this.width=0,this.height=0,this.top=0,this.left=0,this.row=0,this.imageWidth=t,this.imageHeight=n,this.resizedContentWidth=0,this.resizedContentHeight=0,this.displayed=!1,this.neverDisplayed=!0,this.inDisplayArea=!1},ScrollToTop:function(){var e,t,n,i;if(!u.GOM.firstDisplay&&(null!==u.$E.scrollableParent||(e=u.$E.base,t=20,n=a(),(i=e.offset()).top>=n.t&&i.top<=n.t+n.h-t)||u.$E.base.get(0).scrollIntoView(),null!==u.$E.scrollableParent)){var o=u.$E.scrollableParent.scrollTop(),r=Math.abs(u.$E.scrollableParent.offset().top-u.$E.base.offset().top-o);o>r&&window.ng_draf((function(){u.$E.scrollableParent.scrollTop(r)}))}}},u.VOM={viewerDisplayed:!1,viewerIsFullscreen:!1,infoDisplayed:!1,toolbarsDisplayed:!0,toolsHide:null,zoom:{posX:0,posY:0,userFactor:1,isZooming:!1},padding:{H:0,V:0},window:{lastWidth:0,lastHeight:0},$viewer:null,$toolbar:null,$toolbarTL:null,$toolbarTR:null,toolbarMode:"std",playSlideshow:!1,playSlideshowTimerID:0,slideshowDelay:3e3,albumID:-1,viewerMediaIsChanged:!1,items:[],panMode:"off",$baseCont:null,$content:null,content:{previous:{vIdx:-1,$media:null,NGY2Item:function(){return u.I[u.VOM.items[u.VOM.content.previous.vIdx].ngy2ItemIdx]}},current:{vIdx:-1,$media:null,NGY2Item:function(){return u.I[u.VOM.items[u.VOM.content.current.vIdx].ngy2ItemIdx]}},next:{vIdx:-1,$media:null,NGY2Item:function(){return u.I[u.VOM.items[u.VOM.content.next.vIdx].ngy2ItemIdx]}}},IdxNext:function(){var e=0;return u.VOM.content.current.vIdx=t){var n=this.oneTmbWidth*u.VOM.content.current.vIdx;n+this.posX=this.vwidth&&(this.posX=this.vwidth-(n+this.oneTmbWidth))}this.PanGallery(0)}},PanGallery:function(e){this.gwidththis.vwidth-this.oneTmbWidth&&(this.posX=this.vwidth-this.oneTmbWidth),this.posX+this.gwidthu.VOM.ImageLoader.maxChecks?(u.VOM.ImageLoader.list[i]=null,e.callback(0,0,e.ngitem,e.checks)):(t++,e.checks++));0==t&&(u.VOM.ImageLoader.list=[],clearInterval(u.VOM.ImageLoader.intervalHandle),delete u.VOM.ImageLoader.intervalHandle)}}},u.popup={isDisplayed:!1,$elt:null,close:function(){null!=this.$elt&&(new NGTweenable).tween({from:{opacity:1},to:{opacity:0},attachment:{t:this},easing:"easeInOutSine",duration:100,step:function(e,t){null!=t.t.$elt&&t.t.$elt.css("opacity",e.opacity)},finish:function(e,t){null!=t.t.$elt&&(t.t.$elt.remove(),t.t.$elt=null),t.t.isDisplayed=!1}})}},u.galleryTheme_dark={navigationBar:{background:"none",borderTop:"",borderBottom:"",borderRight:"",borderLeft:""},navigationBreadcrumb:{background:"#111",color:"#fff",colorHover:"#ccc",borderRadius:"4px"},navigationFilter:{color:"#ddd",background:"#111",colorSelected:"#fff",backgroundSelected:"#111",borderRadius:"4px"},navigationPagination:{background:"#111",color:"#fff",colorHover:"#ccc",borderRadius:"4px"},thumbnail:{background:"#444",backgroundImage:"linear-gradient(315deg, #111 0%, #445 90%)",borderColor:"#000",borderRadius:"0px",labelOpacity:1,labelBackground:"rgba(34, 34, 34, 0)",titleColor:"#fff",titleBgColor:"transparent",titleShadow:"",descriptionColor:"#ccc",descriptionBgColor:"transparent",descriptionShadow:"",stackBackground:"#aaa"},thumbnailIcon:{padding:"5px",color:"#fff",shadow:""},pagination:{background:"#181818",backgroundSelected:"#666",color:"#fff",borderRadius:"2px",shapeBorder:"3px solid #666",shapeColor:"#444",shapeSelectedColor:"#aaa"}},u.galleryTheme_light={navigationBar:{background:"none",borderTop:"",borderBottom:"",borderRight:"",borderLeft:""},navigationBreadcrumb:{background:"#eee",color:"#000",colorHover:"#333",borderRadius:"4px"},navigationFilter:{background:"#eee",color:"#222",colorSelected:"#000",backgroundSelected:"#eee",borderRadius:"4px"},navigationPagination:{background:"#eee",color:"#000",colorHover:"#333",borderRadius:"4px"},thumbnail:{background:"#444",backgroundImage:"linear-gradient(315deg, #111 0%, #445 90%)",borderColor:"#000",labelOpacity:1,labelBackground:"rgba(34, 34, 34, 0)",titleColor:"#fff",titleBgColor:"transparent",titleShadow:"",descriptionColor:"#ccc",descriptionBgColor:"transparent",descriptionShadow:"",stackBackground:"#888"},thumbnailIcon:{padding:"5px",color:"#fff"},pagination:{background:"#eee",backgroundSelected:"#aaa",color:"#000",borderRadius:"2px",shapeBorder:"3px solid #666",shapeColor:"#444",shapeSelectedColor:"#aaa"}},u.viewerTheme_dark={background:"#000",barBackground:"rgba(4, 4, 4, 0.2)",barBorder:"0px solid #111",barColor:"#fff",barDescriptionColor:"#ccc"},u.viewerTheme_light={background:"#f8f8f8",barBackground:"rgba(4, 4, 4, 0.7)",barBorder:"0px solid #111",barColor:"#fff",barDescriptionColor:"#ccc"};var h=NGY2Tools.NanoAlert,d=NGY2Tools.NanoConsoleLog;function m(){u.VOM.items=[],u.VOM.albumID="0",u.GOM.curNavLevel="l1";for(var e=0,t=u.$E.base[0].src,n=void 0,i=0;i0?De(n):d(u,"No content for Lightbox standalone.")}function p(e){var t={albumID:"0",imageID:"0"},n=e.split("/");return n.length>0&&(t.albumID=n[0],n.length>1&&(t.imageID=n[1])),t}function g(e,t){u.VOM.viewerDisplayed&&tt(null);var n=NGY2Item.GetIdx(u,t);u.GOM.curNavLevel="lN",0==n&&(u.GOM.curNavLevel="l1"),u.layout.SetEngine(),u.galleryResizeEventEnabled=!1,-1==n&&(NGY2Item.New(u,"","",t,"0","album"),n=u.I.length-1),u.I[n].contentIsLoaded?(de(),u.GOM.pagination.currentPage=0,rt(t,""),w(n)):q(t,g,e,t)}function f(){switch(u.galleryDisplayMode.Get()){case"PAGINATION":u.layout.support.rows&&u.galleryMaxRows.Get()>0&&function(){if(u.$E.conTnBottom.css("opacity",0),u.$E.conTnBottom.children().remove(),0==u.GOM.items.length)return;var e=Math.ceil((u.GOM.items[u.GOM.items.length-1].row+1)/u.galleryMaxRows.Get());if(1==e)return;u.GOM.pagination.currentPage>e-1&&(u.GOM.pagination.currentPage=e-1);if(M(),0==u.GOM.displayInterval.len)return;if("NUMBERS"==u.O.galleryPaginationMode&&u.GOM.pagination.currentPage>0){jQuery('").appendTo(u.$E.conTnBottom).click((function(e){G()}))}var t=0,n=e;if("NUMBERS"!=u.O.galleryPaginationMode)t=0;else{var i=u.O.paginationVisiblePages;if(i>=e)t=0;else{var a=0;a=i%2==1?(i+1)/2:i/2,u.GOM.pagination.currentPagee&&(n=e-1)):(t=u.GOM.pagination.currentPage-a,(n=t+i)>e&&(n=e-1)),n-t'+l+"").appendTo(u.$E.conTnBottom);s.data("pageNumber",o),s.click((function(e){u.GOM.pagination.currentPage=jQuery(this).data("pageNumber"),at("pageChanged"),u.GOM.ScrollToTop(),L(),C(!0)}))}if("NUMBERS"==u.O.galleryPaginationMode&&u.GOM.pagination.currentPage+1
"):t.$E.conConsole.append("nanogallery2: "+n+" ["+t.baseEltID+"]
"))},e.NanoConsoleLog=function(e,t){window.console&&console.log("nanogallery2: "+t+" ["+e.baseEltID+"]")},e.PreloaderDisplay=function(e){if(!0===e){if(this.$E.conLoadingB.removeClass("nanoGalleryLBarOff").addClass("nanoGalleryLBar"),null!=this.GOM.albumIdxLoading&&-1!=this.GOM.albumIdxLoading){this.I[this.GOM.albumIdxLoading].$Elts[".nGY2TnImg"].addClass("nGY2GThumbnailLoaderDisplayed")}}else if(this.$E.conLoadingB.removeClass("nanoGalleryLBar").addClass("nanoGalleryLBarOff"),null!=this.GOM.albumIdxLoading&&-1!=this.GOM.albumIdxLoading){this.I[this.GOM.albumIdxLoading].$Elts[".nGY2TnImg"].removeClass("nGY2GThumbnailLoaderDisplayed")}},e.AreaShuffle=function(e){for(var t,n,i=e.length;i;t=Math.floor(Math.random()*i),n=e[--i],e[i]=e[t],e[t]=n);return e},e.GetImageTitleFromURL=function(e){return"%filename"==this.O.thumbnailLabel.get("title")?e.split("/").pop().replace("_"," "):"%filenameNoExt"==this.O.thumbnailLabel.get("title")?e.split("/").pop().split(".").shift().replace("_"," "):""},e.AlbumPostProcess=function(t){var n=this.gallerySorting[this.GOM.curNavLevel],i=this.galleryMaxItems[this.GOM.curNavLevel];if(""!=n||i>0){var a=this.I.filter((function(e){return e.albumID==t&&"albumUp"!=e.kind}));switch(n){case"RANDOM":a=e.AreaShuffle(a);break;case"REVERSED":a=a.reverse();break;case"TITLEASC":a.sort((function(e,t){return e.title.toUpperCase()t.title.toUpperCase()?1:0}));break;case"TITLEDESC":a.sort((function(e,t){return e.title.toUpperCase()>t.title.toUpperCase()?-1:e.title.toUpperCase()0&&a.length>i&&a.splice(i-1,a.length-i),this.I.ngy2removeIf((function(e){return e.albumID==t&&"albumUp"!=e.kind})),this.I.push.apply(this.I,a)}},e}(),window.NGY2Item=function(){var e=1;function t(t){var n=0;n=null==t?e++:t,this.GetID=function(){return n},this.kind="",this.mediaKind="img",this.mediaMarkup="",this.G=null,this.title="",this.description="",this.albumID=0,this.src="",this.width=0,this.height=0,this.destinationURL="",this.downloadURL="",this.author="",this.left=0,this.top=0,this.width=0,this.height=0,this.resizedContentWidth=0,this.resizedContentHeight=0,this.thumbs={url:{l1:{xs:"",sm:"",me:"",la:"",xl:""},lN:{xs:"",sm:"",me:"",la:"",xl:""}},width:{l1:{xs:0,sm:0,me:0,la:0,xl:0},lN:{xs:0,sm:0,me:0,la:0,xl:0}},height:{l1:{xs:0,sm:0,me:0,la:0,xl:0},lN:{xs:0,sm:0,me:0,la:0,xl:0}}},this.thumbnailImgRevealed=!1,this.imageDominantColors=null,this.imageDominantColor=null,this.featured=!1,this.flickrThumbSizes={},this.picasaThumbs=null,this.hovered=!1,this.hoverInitDone=!1,this.contentIsLoaded=!1,this.contentLength=0,this.numberItems=0,this.mediaNumber=0,this.mediaCounter=0,this.eltTransform=[],this.eltFilter=[],this.eltEffect=[],this.paginationLastPage=0,this.paginationLastWidth=0,this.customData={},this.selected=!1,this.imageWidth=0,this.imageHeight=0,this.$elt=null,this.$Elts=[],this.tags=[],this.albumTagList=[],this.albumTagListSel=[],this.exif={exposure:"",flash:"",focallength:"",fstop:"",iso:"",model:"",time:"",location:""},this.deleted=!1,this.rotationAngle=0}t.Get=function(e,t){for(var n=e.I.length,i=0;ie.title===n);void 0!==t&&(n=t.replace)}if(-1!=r&&0!=r&&"image gallery by nanogallery2 [build]"!=n&&e.O.thumbnailLevelUp&&0==u.getContentLength(!1)&&""==e.O.album){let n=new t("0");e.I.push(n),u.contentLength+=1,n.title="UP",n.albumID=r,n.kind="albumUp",n.G=e,jQuery.extend(!0,n.thumbs.width,e.tn.defaultSize.width),jQuery.extend(!0,n.thumbs.height,e.tn.defaultSize.height)}var c=t.Get(e,o);null===c&&(c=new t(o),e.I.push(c),-1!=r&&"image gallery by nanogallery2 [build]"!=n&&(u.contentLength+=1)),c.G=e,c.albumID=r,c.kind=l,"image"==l&&(u.mediaCounter+=1,c.mediaNumber=u.mediaCounter);var h=e.O.thumbnailFeaturedKeyword;if(""!=h){h=h.toUpperCase();var d=n.toUpperCase().indexOf(h);d>-1&&(c.featured=!0,n=n.substring(0,d)+n.substring(d+h.length,n.length)),(d=i.toUpperCase().indexOf(h))>-1&&(c.featured=!0,i=i.substring(0,d)+i.substring(d+h.length,i.length))}if("string"==typeof e.galleryFilterTags.Get())switch(e.galleryFilterTags.Get().toUpperCase()){case"TITLE":{let e,t=/(?:^|\W)#(\w+)(?!\w)/g,i=[];for(;e=t.exec(n);)i.push(e[1].replace(/^\s*|\s*$/,""));c.setTags(i),n=n.split("#").join("");break}case"DESCRIPTION":{let e,t=/(?:^|\W)#(\w+)(?!\w)/g,n=[];for(;e=t.exec(i);)n.push(e[1].replace(/^\s*|\s*$/,""));c.setTags(n),i=i.split("#").join("");break}}else""!=s&&null!=s&&c.setTags(s.split(" "));return c.title=a(e,n),c.description=a(e,i),c},t.prototype.delete=function(){this.deleted=!0,this.G.I[t.GetIdx(this.G,this.albumID)].contentLength--,this.G.I[t.GetIdx(this.G,this.albumID)].numberItems--;for(var e=this.G.GOM.items.length,n=this.GetID(),i=-1,a=-1,o=0;o":">",'"':""","'":"'","/":"/","`":"`","=":"="};function a(e,t){return 1==e.O.allowHTMLinData?t:String(t).replace(/[&<>"'`=\/]/g,(function(e){return i[e]}))}function o(e,t){if("0"===(e=String(e))||1==t)return e;var n=Number(e.replace(/[a-zA-Z]/g,"")),i=e.match(/([^\-0-9\.]+)/g),a="";return null!=i&&i.length>0&&(a=i.join()),isNaN(n)||0==n?e:(n*=t)+a}return t.get_nextId=function(){return e},t.prototype.$getElt=function(e,t){return null==this.$elt?null:(void 0!==this.$Elts[e]&&1==!t||(this.$Elts[e]=".nGY2GThumbnail"==e?this.$elt:this.$elt.find(e)),this.$Elts[e])},t.prototype.removeElt=function(e){if(null!=this.$elt&&null!=this.$Elts[e]){this.$Elts[e].remove();var t=this.$Elts.indexOf(e);this.$Elts.splice(t,1)}},t.prototype.album=function(){return this.G.I[t.GetIdx(this.G,this.albumID)]},t.prototype.mediaTransition=function(){return this.G.O.viewerTransitionMediaKind.indexOf(this.mediaKind)>-1},t.prototype.imageSet=function(e,t,n){this.src=e,this.width=t,this.height=n},t.prototype.thumbSet=function(e,t,n,i,a){var o=["xs","sm","me","la","xl"];if(void 0===i||""==i||null==i)for(var r=0;r0){this.tags=e;for(var t=this.album().albumTagList,n=0;n0){if(this.G.O.thumbnailLevelUp&&"albumUp"==this.kind)return!0;var e=!1,t=this.album().albumTagListSel;if(0==t.length)return!0;for(var n=0;n=0)return!0;return!1},t.prototype.setMediaURL=function(e,t){this.src=e,this.mediaKind=t,"img"==t&&(this.mediaMarkup='')},t.prototype.isToDisplay=function(e){return this.albumID==e&&this.checkTagFilter()&&this.isSearchFound()&&this.isSearchTagFound()&&0==this.deleted},t.prototype.getContentLength=function(e){if(0==e||0==this.albumTagList.length||0==this.G.galleryFilterTags.Get())return this.contentLength;for(var t=this.G.I.length,n=0,i=this.GetID(),a=0;a=0;h--){var d="translateX("+o(t.translateX,i)+") translateY("+o(t.translateY,a)+") translateZ("+o(t.translateZ,r)+") scale("+o(t.scale,c)+") translate("+o(t.translate,1)+")";this.G.IE<=9||this.G.isGingerbread?d+=" rotate("+o(t.rotateZ,u)+")":d+=" rotateX("+o(t.rotateX,l)+") rotateY("+o(t.rotateY,s)+") rotateZ("+o(t.rotateZ,u)+") rotate("+o(t.rotate,1)+")",t.$elt[h].style[this.G.CSStransformName]=d,n>0&&(i-=this.G.tn.opt.Get("stacksTranslateX"),a-=this.G.tn.opt.Get("stacksTranslateY"),r-=this.G.tn.opt.Get("stacksTranslateZ"),l-=this.G.tn.opt.Get("stacksRotateX"),s-=this.G.tn.opt.Get("stacksRotateY"),u-=this.G.tn.opt.Get("stacksRotateZ"),c-=this.G.tn.opt.Get("stacksScale"))}else if(null!=t.$elt)for(h=0;h',thumbnailImage:'',breadcrumbAlbum:'',breadcrumbHome:'',breadcrumbSeparator:'',breadcrumbSeparatorRtl:'',navigationFilterSelected:'',navigationFilterUnselected:'',navigationFilterSelectedAll:'',navigationPaginationPrevious:'',navigationPaginationNext:'',thumbnailSelected:'',thumbnailUnselected:'',thumbnailFeatured:'',thumbnailCounter:'',thumbnailShare:'',thumbnailDownload:'',thumbnailInfo:'',thumbnailShoppingcart:'',thumbnailDisplay:'',thumbnailCustomTool1:"T1",thumbnailCustomTool2:"T2",thumbnailCustomTool3:"T3",thumbnailCustomTool4:"T4",thumbnailCustomTool5:"T5",thumbnailCustomTool6:"T6",thumbnailCustomTool7:"T7",thumbnailCustomTool8:"T8",thumbnailCustomTool9:"T9",thumbnailCustomTool10:"T10",thumbnailAlbumUp:'',paginationNext:'',paginationPrevious:'',galleryMoreButton:' ',buttonClose:'',viewerPrevious:'',viewerNext:'',viewerImgPrevious:'',viewerImgNext:'',viewerDownload:'',viewerToolbarMin:'',viewerToolbarStd:'',viewerPlay:'',viewerPause:'',viewerFullscreenOn:'',viewerFullscreenOff:'',viewerZoomIn:'',viewerZoomOut:'',viewerLinkOriginal:'',viewerInfo:'',viewerShare:'',viewerRotateLeft:'',viewerRotateRight:'',viewerShoppingcart:'',user:'',location:'',picture:'',config:'',shareFacebook:'',shareTwitter:'',shareTumblr:'',sharePinterest:'',shareVK:'',shareMail:'',viewerCustomTool1:"T1",viewerCustomTool2:"T2",viewerCustomTool3:"T3",viewerCustomTool4:"T4",viewerCustomTool5:"T5",viewerCustomTool6:"T6",viewerCustomTool7:"T7",viewerCustomTool8:"T8",viewerCustomTool9:"T9",viewerCustomTool10:"T10"}},jQuery.fn.nanogallery2=function(t,n,i){if(void 0===jQuery(this).data("nanogallery2data")){if("destroy"==t)return;return this.each((function(){new jQuery.nanogallery2(this,t)}))}var a=e(this).data("nanogallery2data").nG2;if(void 0===t||!0!==t.lightboxStandalone){switch(t){case"displayItem":a.DisplayItem(n);break;case"search":return a.Search(n);case"search2":return a.Search2(n,i);case"search2Execute":return a.Search2Execute();case"refresh":a.Refresh();break;case"resize":a.Resize();break;case"instance":return a;case"data":return a.data={items:a.I,gallery:a.GOM,lightbox:a.VOM,shoppingcart:a.shoppingCart},a.data;case"reload":return a.ReloadAlbum(),e(this);case"itemsSelectedGet":return a.ItemsSelectedGet();case"itemsSetSelectedValue":a.ItemsSetSelectedValue(n,i);break;case"option":if(void 0===i)return a.Get(n);a.Set(n,i),"demoViewportWidth"==n&&e(window).trigger("resize");break;case"destroy":a.Destroy(),e(this).removeData("nanogallery2data");break;case"shoppingCartGet":return a.shoppingCart;case"shoppingCartUpdate":if(void 0===i||void 0===n)return!1;for(var o=n,r=i,l=0;l0)){var i=!1;if(null!==this.allowList){for(a=0;a"+n+""):t.$E.conConsole.append("nanogallery2: "+n+" ["+t.baseEltID+"]
"))},e.NanoConsoleLog=function(e,t){window.console&&console.log("nanogallery2: "+t+" ["+e.baseEltID+"]")},e.PreloaderDisplay=function(e){if(!0===e){if(this.$E.conLoadingB.removeClass("nanoGalleryLBarOff").addClass("nanoGalleryLBar"),null!=this.GOM.albumIdxLoading&&-1!=this.GOM.albumIdxLoading){this.I[this.GOM.albumIdxLoading].$Elts[".nGY2TnImg"].addClass("nGY2GThumbnailLoaderDisplayed")}}else if(this.$E.conLoadingB.removeClass("nanoGalleryLBar").addClass("nanoGalleryLBarOff"),null!=this.GOM.albumIdxLoading&&-1!=this.GOM.albumIdxLoading){this.I[this.GOM.albumIdxLoading].$Elts[".nGY2TnImg"].removeClass("nGY2GThumbnailLoaderDisplayed")}},e.AreaShuffle=function(e){for(var t,n,i=e.length;i;t=Math.floor(Math.random()*i),n=e[--i],e[i]=e[t],e[t]=n);return e},e.GetImageTitleFromURL=function(e){return"%filename"==this.O.thumbnailLabel.get("title")?e.split("/").pop().replace("_"," "):"%filenameNoExt"==this.O.thumbnailLabel.get("title")?e.split("/").pop().split(".").shift().replace("_"," "):""},e.AlbumPostProcess=function(t){var n=this.gallerySorting[this.GOM.curNavLevel],i=this.galleryMaxItems[this.GOM.curNavLevel];if(""!=n||i>0){var a=this.I.filter((function(e){return e.albumID==t&&"albumUp"!=e.kind}));switch(n){case"RANDOM":a=e.AreaShuffle(a);break;case"REVERSED":a=a.reverse();break;case"TITLEASC":a.sort((function(e,t){return e.title.toUpperCase()t.title.toUpperCase()?1:0}));break;case"TITLEDESC":a.sort((function(e,t){return e.title.toUpperCase()>t.title.toUpperCase()?-1:e.title.toUpperCase()0&&a.length>i&&a.splice(i-1,a.length-i),this.I.ngy2removeIf((function(e){return e.albumID==t&&"albumUp"!=e.kind})),this.I.push.apply(this.I,a)}},e}(),window.NGY2Item=function(){var e=1;function t(t){var n=0;n=null==t?e++:t,this.GetID=function(){return n},this.kind="",this.mediaKind="img",this.mediaMarkup="",this.G=null,this.title="",this.description="",this.albumID=0,this.src="",this.width=0,this.height=0,this.destinationURL="",this.downloadURL="",this.author="",this.left=0,this.top=0,this.width=0,this.height=0,this.resizedContentWidth=0,this.resizedContentHeight=0,this.thumbs={url:{l1:{xs:"",sm:"",me:"",la:"",xl:""},lN:{xs:"",sm:"",me:"",la:"",xl:""}},width:{l1:{xs:0,sm:0,me:0,la:0,xl:0},lN:{xs:0,sm:0,me:0,la:0,xl:0}},height:{l1:{xs:0,sm:0,me:0,la:0,xl:0},lN:{xs:0,sm:0,me:0,la:0,xl:0}}},this.thumbnailImgRevealed=!1,this.imageDominantColors=null,this.imageDominantColor=null,this.featured=!1,this.flickrThumbSizes={},this.picasaThumbs=null,this.hovered=!1,this.hoverInitDone=!1,this.contentIsLoaded=!1,this.contentLength=0,this.numberItems=0,this.mediaNumber=0,this.mediaCounter=0,this.eltTransform=[],this.eltFilter=[],this.eltEffect=[],this.paginationLastPage=0,this.paginationLastWidth=0,this.customData={},this.selected=!1,this.imageWidth=0,this.imageHeight=0,this.$elt=null,this.$Elts=[],this.tags=[],this.albumTagList=[],this.albumTagListSel=[],this.exif={exposure:"",flash:"",focallength:"",fstop:"",iso:"",model:"",time:"",location:""},this.deleted=!1,this.rotationAngle=0}t.Get=function(e,t){for(var n=e.I.length,i=0;ie.title===n);void 0!==t&&(n=t.replace)}if(-1!=r&&0!=r&&"image gallery by nanogallery2 [build]"!=n&&e.O.thumbnailLevelUp&&0==u.getContentLength(!1)&&""==e.O.album){let n=new t("0");e.I.push(n),u.contentLength+=1,n.title="UP",n.albumID=r,n.kind="albumUp",n.G=e,jQuery.extend(!0,n.thumbs.width,e.tn.defaultSize.width),jQuery.extend(!0,n.thumbs.height,e.tn.defaultSize.height)}var c=t.Get(e,o);null===c&&(c=new t(o),e.I.push(c),-1!=r&&"image gallery by nanogallery2 [build]"!=n&&(u.contentLength+=1)),c.G=e,c.albumID=r,c.kind=l,"image"==l&&(u.mediaCounter+=1,c.mediaNumber=u.mediaCounter);var h=e.O.thumbnailFeaturedKeyword;if(""!=h){h=h.toUpperCase();var d=n.toUpperCase().indexOf(h);d>-1&&(c.featured=!0,n=n.substring(0,d)+n.substring(d+h.length,n.length)),(d=i.toUpperCase().indexOf(h))>-1&&(c.featured=!0,i=i.substring(0,d)+i.substring(d+h.length,i.length))}if("string"==typeof e.galleryFilterTags.Get())switch(e.galleryFilterTags.Get().toUpperCase()){case"TITLE":{let e,t=/(?:^|\W)#(\w+)(?!\w)/g,i=[];for(;e=t.exec(n);)i.push(e[1].replace(/^\s*|\s*$/,""));c.setTags(i),n=n.split("#").join("");break}case"DESCRIPTION":{let e,t=/(?:^|\W)#(\w+)(?!\w)/g,n=[];for(;e=t.exec(i);)n.push(e[1].replace(/^\s*|\s*$/,""));c.setTags(n),i=i.split("#").join("");break}}else""!=s&&null!=s&&c.setTags(s.split(" "));return c.title=a(e,n),c.description=a(e,i),c},t.prototype.delete=function(){this.deleted=!0,this.G.I[t.GetIdx(this.G,this.albumID)].contentLength--,this.G.I[t.GetIdx(this.G,this.albumID)].numberItems--;for(var e=this.G.GOM.items.length,n=this.GetID(),i=-1,a=-1,o=0;o":">",'"':""","'":"'","/":"/","`":"`","=":"="};function a(e,t){return 1==e.O.allowHTMLinData?t:String(t).replace(/[&<>"'`=\/]/g,(function(e){return i[e]}))}function o(e,t){if("0"===(e=String(e))||1==t)return e;var n=Number(e.replace(/[a-zA-Z]/g,"")),i=e.match(/([^\-0-9\.]+)/g),a="";return null!=i&&i.length>0&&(a=i.join()),isNaN(n)||0==n?e:(n*=t)+a}return t.get_nextId=function(){return e},t.prototype.$getElt=function(e,t){return null==this.$elt?null:(void 0!==this.$Elts[e]&&1==!t||(this.$Elts[e]=".nGY2GThumbnail"==e?this.$elt:this.$elt.find(e)),this.$Elts[e])},t.prototype.removeElt=function(e){if(null!=this.$elt&&null!=this.$Elts[e]){this.$Elts[e].remove();var t=this.$Elts.indexOf(e);this.$Elts.splice(t,1)}},t.prototype.album=function(){return this.G.I[t.GetIdx(this.G,this.albumID)]},t.prototype.mediaTransition=function(){return this.G.O.viewerTransitionMediaKind.indexOf(this.mediaKind)>-1},t.prototype.imageSet=function(e,t,n){this.src=e,this.width=t,this.height=n},t.prototype.thumbSet=function(e,t,n,i,a){var o=["xs","sm","me","la","xl"];if(void 0===i||""==i||null==i)for(var r=0;r0){this.tags=e;for(var t=this.album().albumTagList,n=0;n0){if(this.G.O.thumbnailLevelUp&&"albumUp"==this.kind)return!0;var e=!1,t=this.album().albumTagListSel;if(0==t.length)return!0;for(var n=0;n=0)return!0;return!1},t.prototype.setMediaURL=function(e,t){this.src=e,this.mediaKind=t,"img"==t&&(this.mediaMarkup='')},t.prototype.isToDisplay=function(e){return this.albumID==e&&this.checkTagFilter()&&this.isSearchFound()&&this.isSearchTagFound()&&0==this.deleted},t.prototype.getContentLength=function(e){if(0==e||0==this.albumTagList.length||0==this.G.galleryFilterTags.Get())return this.contentLength;for(var t=this.G.I.length,n=0,i=this.GetID(),a=0;a=0;h--){var d="translateX("+o(t.translateX,i)+") translateY("+o(t.translateY,a)+") translateZ("+o(t.translateZ,r)+") scale("+o(t.scale,c)+") translate("+o(t.translate,1)+")";this.G.IE<=9||this.G.isGingerbread?d+=" rotate("+o(t.rotateZ,u)+")":d+=" rotateX("+o(t.rotateX,l)+") rotateY("+o(t.rotateY,s)+") rotateZ("+o(t.rotateZ,u)+") rotate("+o(t.rotate,1)+")",t.$elt[h].style[this.G.CSStransformName]=d,n>0&&(i-=this.G.tn.opt.Get("stacksTranslateX"),a-=this.G.tn.opt.Get("stacksTranslateY"),r-=this.G.tn.opt.Get("stacksTranslateZ"),l-=this.G.tn.opt.Get("stacksRotateX"),s-=this.G.tn.opt.Get("stacksRotateY"),u-=this.G.tn.opt.Get("stacksRotateZ"),c-=this.G.tn.opt.Get("stacksScale"))}else if(null!=t.$elt)for(h=0;h',thumbnailImage:'',breadcrumbAlbum:'',breadcrumbHome:'',breadcrumbSeparator:'',breadcrumbSeparatorRtl:'',navigationFilterSelected:'',navigationFilterUnselected:'',navigationFilterSelectedAll:'',navigationPaginationPrevious:'',navigationPaginationNext:'',thumbnailSelected:'',thumbnailUnselected:'',thumbnailFeatured:'',thumbnailCounter:'',thumbnailShare:'',thumbnailDownload:'',thumbnailInfo:'',thumbnailShoppingcart:'',thumbnailDisplay:'',thumbnailCustomTool1:"T1",thumbnailCustomTool2:"T2",thumbnailCustomTool3:"T3",thumbnailCustomTool4:"T4",thumbnailCustomTool5:"T5",thumbnailCustomTool6:"T6",thumbnailCustomTool7:"T7",thumbnailCustomTool8:"T8",thumbnailCustomTool9:"T9",thumbnailCustomTool10:"T10",thumbnailAlbumUp:'',paginationNext:'',paginationPrevious:'',galleryMoreButton:' ',buttonClose:'',viewerPrevious:'',viewerNext:'',viewerImgPrevious:'',viewerImgNext:'',viewerDownload:'',viewerToolbarMin:'',viewerToolbarStd:'',viewerPlay:'',viewerPause:'',viewerFullscreenOn:'',viewerFullscreenOff:'',viewerZoomIn:'',viewerZoomOut:'',viewerLinkOriginal:'',viewerInfo:'',viewerShare:'',viewerRotateLeft:'',viewerRotateRight:'',viewerShoppingcart:'',user:'',location:'',picture:'',config:'',shareFacebook:'',shareTwitter:'',shareTumblr:'',sharePinterest:'',shareVK:'',shareMail:'',viewerCustomTool1:"T1",viewerCustomTool2:"T2",viewerCustomTool3:"T3",viewerCustomTool4:"T4",viewerCustomTool5:"T5",viewerCustomTool6:"T6",viewerCustomTool7:"T7",viewerCustomTool8:"T8",viewerCustomTool9:"T9",viewerCustomTool10:"T10"}},jQuery.fn.nanogallery2=function(t,n,i){if(void 0===jQuery(this).data("nanogallery2data")){if("destroy"==t)return;return this.each((function(){new jQuery.nanogallery2(this,t)}))}var a=e(this).data("nanogallery2data").nG2;if(void 0===t||!0!==t.lightboxStandalone){switch(t){case"displayItem":a.DisplayItem(n);break;case"search":return a.Search(n);case"search2":return a.Search2(n,i);case"search2Execute":return a.Search2Execute();case"refresh":a.Refresh();break;case"resize":a.Resize();break;case"instance":return a;case"data":return a.data={items:a.I,gallery:a.GOM,lightbox:a.VOM,shoppingcart:a.shoppingCart},a.data;case"reload":return a.ReloadAlbum(),e(this);case"itemsSelectedGet":return a.ItemsSelectedGet();case"itemsSetSelectedValue":a.ItemsSetSelectedValue(n,i);break;case"option":if(void 0===i)return a.Get(n);a.Set(n,i),"demoViewportWidth"==n&&e(window).trigger("resize");break;case"destroy":a.Destroy(),e(this).removeData("nanogallery2data");break;case"shoppingCartGet":return a.shoppingCart;case"shoppingCartUpdate":if(void 0===i||void 0===n)return!1;for(var o=n,r=i,l=0;l=i,r=l-(i-a),e.isPlaying()&&(o?(p(h,e._attachment,r),e.stop(!0)):(e._scheduleId=f(e._timeoutHandler,1e3/60),g(e,"beforeTween"),a=0?e:0-e}return s=1-(c=3*t)-(u=3*(i-t)-c),h=1-(m=3*n)-(d=3*(a-n)-m),r=e,l=function(e){return 1/(200*e)}(o),function(e){return((h*e+d)*e+m)*e}(function(e,t){var n,i,a,o,r,l;for(a=e,l=0;l<8;l++){if(f(o=p(a)-e)i)return i;for(;no?n=a:i=a,a=.5*(i-n)+n}return a}(r,l))}n.setBezierFunction=function(t,i,a,o,r){var l=function(t,n,i,a){return function(o){return e(o,t,n,i,a,1)}}(i,a,o,r);return l.displayName=t,l.x1=i,l.y1=a,l.x2=o,l.y2=r,n.prototype.formula[t]=l},n.unsetBezierFunction=function(e){delete n.prototype.formula[e]}}(),(e=new n)._filterArgs=[],n.interpolate=function(t,i,a,o,r){var l=n.shallowCopy({},t),s=r||0,u=n.composeEasingObject(t,o||"linear");e.set({});var c=e._filterArgs;c.length=0,c[0]=l,c[1]=t,c[2]=i,c[3]=u,n.applyFilter(e,"tweenCreated"),n.applyFilter(e,"beforeTween");var h=function(e,t,i,a,o,r){return n.tweenProps(a,t,e,i,1,r,o)}(t,l,i,a,u,s);return n.applyFilter(e,"afterTween"),h},function(e){var t=/(\d|\-|\.)/,n=/([^\-0-9\.]+)/g,i=/[0-9.\-]+/g,a=new RegExp("rgb\\("+i.source+/,\s*/.source+i.source+/,\s*/.source+i.source+"\\)","g"),o=/^.*\(/,r=/#([0-9]|[a-f]){3,6}/gi;function l(e,t){var n,i=[],a=e.length;for(n=0;n=i,r=l-(i-a),e.isPlaying()&&(o?(p(h,e._attachment,r),e.stop(!0)):(e._scheduleId=f(e._timeoutHandler,1e3/60),g(e,"beforeTween"),a=0?e:0-e}return s=1-(c=3*t)-(u=3*(i-t)-c),h=1-(m=3*n)-(d=3*(a-n)-m),r=e,l=function(e){return 1/(200*e)}(o),function(e){return((h*e+d)*e+m)*e}(function(e,t){var n,i,a,o,r,l;for(a=e,l=0;l<8;l++){if(f(o=p(a)-e)i)return i;for(;no?n=a:i=a,a=.5*(i-n)+n}return a}(r,l))}n.setBezierFunction=function(t,i,a,o,r){var l=function(t,n,i,a){return function(o){return e(o,t,n,i,a,1)}}(i,a,o,r);return l.displayName=t,l.x1=i,l.y1=a,l.x2=o,l.y2=r,n.prototype.formula[t]=l},n.unsetBezierFunction=function(e){delete n.prototype.formula[e]}}(),(t=new n)._filterArgs=[],n.interpolate=function(e,i,a,o,r){var l=n.shallowCopy({},e),s=r||0,u=n.composeEasingObject(e,o||"linear");t.set({});var c=t._filterArgs;c.length=0,c[0]=l,c[1]=e,c[2]=i,c[3]=u,n.applyFilter(t,"tweenCreated"),n.applyFilter(t,"beforeTween");var h=function(e,t,i,a,o,r){return n.tweenProps(a,t,e,i,1,r,o)}(e,l,i,a,u,s);return n.applyFilter(t,"afterTween"),h},function(e){var t=/(\d|\-|\.)/,n=/([^\-0-9\.]+)/g,i=/[0-9.\-]+/g,a=new RegExp("rgb\\("+i.source+/,\s*/.source+i.source+/,\s*/.source+i.source+"\\)","g"),o=/^.*\(/,r=/#([0-9]|[a-f]){3,6}/gi;function l(e,t){var n,i=[],a=e.length;for(n=0;n do not display anymore
+ this.deleted = false; // item is deleted -> do not display anymore
this.rotationAngle = 0; // image display rotation angle
}
@@ -1326,9 +1328,9 @@
userID : '',
photoset : '',
album: '',
- blockList : 'scrapbook|profil|auto backup',
+ blockList : 'scrapbook|profil|auto backup',
tagBlockList: '',
- allowList : '',
+ allowList : '',
albumList : '',
albumList2 : null,
RTL : false,
@@ -1339,18 +1341,18 @@
breadcrumbOnlyCurrentLevel : true,
breadcrumbHideIcons : true,
theme : 'nGY2',
- galleryTheme : 'dark',
+ galleryTheme : 'dark',
viewerTheme : 'dark',
items : null,
itemsBaseURL : '',
thumbnailSelectable : false,
dataProvider: '',
- allowHTMLinData: false,
- locationHash : true,
- slideshowDelay : 3000,
- slideshowAutoStart : false,
-
- debugMode: false,
+ allowHTMLinData: false,
+ locationHash : true,
+ slideshowDelay : 3000,
+ slideshowAutoStart : false,
+
+ debugMode: false,
titleTranslationMap: null,
galleryDisplayMoreStep : 2,
@@ -1377,31 +1379,31 @@
galleryL1DisplayTransition : null,
galleryDisplayTransitionDuration : 1000,
galleryL1DisplayTransitionDuration : null,
- galleryResizeAnimation : false,
- galleryRenderDelay : 10,
-
+ galleryResizeAnimation : false,
+ galleryRenderDelay : 10,
+
thumbnailCrop : true,
- thumbnailL1Crop : null,
- thumbnailCropScaleFactor : 1.5,
- thumbnailLevelUp : false,
- thumbnailAlignment : 'fillWidth',
+ thumbnailL1Crop : null,
+ thumbnailCropScaleFactor : 1.5,
+ thumbnailLevelUp : false,
+ thumbnailAlignment : 'fillWidth',
thumbnailWidth : 300,
- thumbnailL1Width : null,
+ thumbnailL1Width : null,
thumbnailHeight : 200,
thumbnailL1Height : null,
thumbnailBaseGridHeight : 0,
- thumbnailL1BaseGridHeight : null,
+ thumbnailL1BaseGridHeight : null,
thumbnailGutterWidth : 2,
- thumbnailL1GutterWidth : null,
+ thumbnailL1GutterWidth : null,
thumbnailGutterHeight : 2,
- thumbnailL1GutterHeight : null,
+ thumbnailL1GutterHeight : null,
thumbnailBorderVertical : 2,
- thumbnailL1BorderVertical : null,
+ thumbnailL1BorderVertical : null,
thumbnailBorderHorizontal : 2,
- thumbnailL1BorderHorizontal : null,
- thumbnailFeaturedKeyword : '*featured',
- thumbnailAlbumDisplayImage : false,
- thumbnailHoverEffect2 : 'toolsAppear',
+ thumbnailL1BorderHorizontal : null,
+ thumbnailFeaturedKeyword : '*featured',
+ thumbnailAlbumDisplayImage : false,
+ thumbnailHoverEffect2 : 'toolsAppear',
thumbnailBuildInit2 : '',
thumbnailStacks : 0,
thumbnailL1Stacks : null,
@@ -1424,41 +1426,41 @@
thumbnailSliderDelay: 2000,
galleryBuildInit2 : '',
portable : false,
- eventsDebounceDelay: 10,
-
+ eventsDebounceDelay: 10,
+
touchAnimation : false,
- touchAnimationL1 : undefined,
- touchAutoOpenDelay : 0,
-
- thumbnailLabel : {
- position : 'overImage',
+ touchAnimationL1 : undefined,
+ touchAutoOpenDelay : 0,
+
+ thumbnailLabel : {
+ position : 'overImage',
align: 'center',
- valign: 'bottom',
- display : true,
- displayDescription : false,
+ valign: 'bottom',
+ display : true,
+ displayDescription : false,
titleMaxLength : 0,
- titleMultiLine : false,
+ titleMultiLine : false,
descriptionMaxLength : 0,
- descriptionMultiLine : false,
- hideIcons : true,
- title : ''
- },
-
- thumbnailToolbarImage : { topLeft: 'select', topRight : 'featured' },
- thumbnailToolbarAlbum : { topLeft: 'select', topRight : 'counter' },
+ descriptionMultiLine : false,
+ hideIcons : true,
+ title : ''
+ },
+
+ thumbnailToolbarImage : { topLeft: 'select', topRight : 'featured' },
+ thumbnailToolbarAlbum : { topLeft: 'select', topRight : 'counter' },
thumbnailDisplayOrder : '',
thumbnailL1DisplayOrder : null,
thumbnailDisplayInterval : 15,
- thumbnailL1DisplayInterval : null,
+ thumbnailL1DisplayInterval : null,
thumbnailDisplayTransition : 'fadeIn',
- thumbnailL1DisplayTransition : null,
+ thumbnailL1DisplayTransition : null,
thumbnailDisplayTransitionEasing : 'easeOutQuart',
- thumbnailL1DisplayTransitionEasing : null,
+ thumbnailL1DisplayTransitionEasing : null,
thumbnailDisplayTransitionDuration: 240,
- thumbnailL1DisplayTransitionDuration: null,
+ thumbnailL1DisplayTransitionDuration: null,
thumbnailOpenInLightox : true,
- thumbnailOpenOriginal : false,
-
+ thumbnailOpenOriginal : false,
+
lightboxStandalone: false,
viewer : 'internal',
viewerFullscreen: false,
@@ -1485,19 +1487,19 @@
viewerGalleryTWidth: 40,
viewerGalleryTHeight: 40,
- breakpointSizeSM : 480,
- breakpointSizeME : 992,
- breakpointSizeLA : 1200,
+ breakpointSizeSM : 480,
+ breakpointSizeME : 992,
+ breakpointSizeLA : 1200,
breakpointSizeXL : 1800,
-
- fnThumbnailInit : null,
- fnThumbnailHoverInit : null,
- fnThumbnailHover : null,
- fnThumbnailHoverOut : null,
+
+ fnThumbnailInit : null,
+ fnThumbnailHoverInit : null,
+ fnThumbnailHover : null,
+ fnThumbnailHoverOut : null,
fnThumbnailDisplayEffect : null,
fnViewerInfo : null,
- fnImgToolbarCustInit : null,
- fnImgToolbarCustDisplay : null,
+ fnImgToolbarCustInit : null,
+ fnImgToolbarCustDisplay : null,
fnImgToolbarCustClick : null,
fnProcessData : null,
fnThumbnailSelection : null,
@@ -1505,13 +1507,13 @@
fnGalleryRenderEnd : null,
fnGalleryObjectModelBuilt : null,
fnGalleryLayoutApplied : null,
- fnThumbnailClicked : null,
- fnShoppingCartUpdated : null,
- fnThumbnailToolCustAction : null,
- fnThumbnailOpen : null,
+ fnThumbnailClicked : null,
+ fnShoppingCartUpdated : null,
+ fnThumbnailToolCustAction : null,
+ fnThumbnailOpen : null,
fnImgDisplayed : null,
- fnPopupMediaInfo : null,
-
+ fnPopupMediaInfo : null,
+
i18n : {
'breadcrumbHome' : 'Galleries', 'breadcrumbHome_FR' : 'Galeries',
'thumbnailImageTitle' : '', 'thumbnailAlbumTitle' : '',
@@ -1552,7 +1554,7 @@
thumbnailCustomTool10: 'T10',
thumbnailAlbumUp: '',
paginationNext: '',
- paginationPrevious: '',
+ paginationPrevious: '',
galleryMoreButton: ' ',
buttonClose: '',
viewerPrevious: '',
@@ -1570,8 +1572,8 @@
viewerZoomOut: '',
viewerLinkOriginal: '',
viewerInfo: '',
- viewerShare: '',
- viewerRotateLeft: '',
+ viewerShare: '',
+ viewerRotateLeft: '',
viewerRotateRight: '',
viewerShoppingcart: '',
user: '',
@@ -1810,7 +1812,7 @@
* Force reload the current album, if provided by Json
*/
this.LightboxReOpen = function(){
- LightboxStandaloneDisplay();
+ LightboxStandaloneDisplay();
}
/**
@@ -2015,7 +2017,7 @@
if( G.$E.scrollableParent !== null ) {
G.$E.scrollableParent.off('scroll.nanogallery2.' + G.baseEltID);
}
- G.GOM.firstDisplay = true;
+ G.GOM.firstDisplay = true;
};
/**
@@ -2516,18 +2518,18 @@
firstDisplay : true,
firstDisplayTime : 0, // in conjunction with galleryRenderDelay
navigationBar : { // content of the navigation bar (for breadcrumb, filter tags and next/previous pagination)
- displayed: false,
+ displayed: false,
$newContent: ''
},
cache : { // cached data
- viewport: null,
+ viewport: null,
containerOffset: null,
areaWidth: 100 // available area width
},
nbSelected : 0, // number of selected items
pagination : { currentPage: 0 }, // pagination data
- panThreshold: 60, // threshold value (in pixels) to block horizontal pan/swipe
- panYOnly: false, // threshold value reach -> definitively block horizontal pan until end of pan
+ panThreshold: 60, // threshold value (in pixels) to block horizontal pan/swipe
+ panYOnly: false, // threshold value reach -> definitively block horizontal pan until end of pan
lastFullRow : -1, // number of the last row without holes
lastDisplayedIdx: -1, // used to display the counter of not displayed items
displayInterval : { from: 0, len: 0 },
@@ -2612,7 +2614,7 @@
posY: 0,
userFactor: 1, // user zoom factor (applied to the baseZoom factor)
isZooming: false
- },
+ },
padding: { H: 0, V: 0 }, // padding for the image
window: { lastWidth: 0, lastHeight: 0 },
$viewer: null,
@@ -2770,9 +2772,9 @@
hammertime: null, // hammer.js manager
swipePosX: 0, // current horizontal swip position
panPosX: 0, // position for manual pan
- panPosY: 0,
- panThreshold: 60, // threshold value (in pixels) to block vertical pan
- panXOnly: false, // threshold value reach -> definitively block vertical pan until end of pan
+ panPosY: 0,
+ panThreshold: 60, // threshold value (in pixels) to block vertical pan
+ panXOnly: false, // threshold value reach -> definitively block vertical pan until end of pan
singletapTime: 0,
viewerTheme: '',
timeImgChanged: 0,
@@ -2898,17 +2900,17 @@
// Color schemes - lightbox
G.viewerTheme_dark = {
- background: '#000',
- barBackground: 'rgba(4, 4, 4, 0.2)',
- barBorder: '0px solid #111',
- barColor: '#fff',
+ background: '#000',
+ barBackground: 'rgba(4, 4, 4, 0.2)',
+ barBorder: '0px solid #111',
+ barColor: '#fff',
barDescriptionColor: '#ccc'
};
G.viewerTheme_light = {
- background: '#f8f8f8',
- barBackground: 'rgba(4, 4, 4, 0.7)',
- barBorder: '0px solid #111',
- barColor: '#fff',
+ background: '#f8f8f8',
+ barBackground: 'rgba(4, 4, 4, 0.7)',
+ barBorder: '0px solid #111',
+ barColor: '#fff',
barDescriptionColor: '#ccc'
};
@@ -3074,14 +3076,24 @@
G.GOM.curNavLevel = 'l1';
var vcnt = 0;
- var srct = G.$E.base[0].src;
+ var elt = G.$E.base[0].attributes;
+ var thumbsrc = '';
+ // src attribute (img element)
+ if( elt.hasOwnProperty('src') ) {
+ thumbsrc = elt['src'].nodeValue;
+ }
+ // data-ngthumb attribute
+ if( thumbsrc == '' && elt.hasOwnProperty('data-ngthumb') ) {
+ thumbsrc = elt['data-ngthumb'].nodeValue;
+ }
+
var displayIdx = undefined;
for( var idx = 0; idx < G.I.length; idx++ ) {
if( G.I[idx].kind == 'image' ) {
var vimg = new VImg(idx);
G.VOM.items.push(vimg);
- if( G.I[idx].thumbImg().src == srct ) {
+ if( G.I[idx].thumbImg().src == thumbsrc ) {
// same thumbnail URL
displayIdx = vcnt;
}
@@ -3525,7 +3537,7 @@
function paginationNextPage() {
// var aIdx = G.GOM.albumIdx;
var n1 = 0;
- ThumbnailHoverOutAll();
+ ThumbnailHoverOutAll();
// pagination - max lines per page mode
if( G.galleryMaxRows.Get() > 0 ) {
@@ -3556,8 +3568,8 @@
// var aIdx=G.$E.conTnBottom.data('galleryIdx'),
// var aIdx = G.GOM.albumIdx;
var n1 = 0;
-
- ThumbnailHoverOutAll();
+
+ ThumbnailHoverOutAll();
// pagination - max lines per page mode
if( G.galleryMaxRows.Get() > 0 ) {
@@ -3698,7 +3710,7 @@
GalleryRenderPart1( albumIdx );
}
G.O.galleryRenderDelay = 0;
-
+
}
else {
var hideNavigationBar = false;
@@ -3897,7 +3909,6 @@
var h = item.thumbImg().height;
// if unknown image size and layout is not grid --> we need to retrieve the size of the images
if( G.layout.prerequisite.imageSize && ( w == 0 || h == 0) ) {
- // if( true ) {
preloadImages += '';
}
@@ -5165,6 +5176,7 @@
}
// var src = encodeURI(item.thumbImg().src),
+
var src = (item.thumbImg().src).replace(/'/g, "%27"), // replace single quote with %27
sTitle = getThumbnailTitle(item);
@@ -5213,7 +5225,8 @@
newElt[newEltIdx++]='';
// #### layer for image
- var s2 = op + "position: absolute; top: 0px; left: 0px; width:" + w + "px; height:" + h + "px; background-image: url('" + src + "'); background-position: center center; background-repeat: no-repeat; background-size:" + bgSize + "; overflow: hidden;";
+ // for url in CSS: single backslashes are replaced by double backslashes
+ var s2 = op + "position: absolute; top: 0px; left: 0px; width:" + w + "px; height:" + h + "px; background-image: url('" + src.replace(/\\/g, '\\\\') + "'); background-position: center center; background-repeat: no-repeat; background-size:" + bgSize + "; overflow: hidden;";
newElt[newEltIdx++]='';
newElt[newEltIdx++]='
';
newElt[newEltIdx++]='
';
@@ -5890,7 +5903,7 @@
}
// build initialization
- var inits = G.tn.buildInit.get();
+ var inits = G.tn.buildInit.get();
for( var j = 0; j < inits.length; j++) {
switch( inits[j].property ) {
// CSS Transform
@@ -5908,9 +5921,9 @@
case 'blur':
case 'brightness':
case 'grayscale':
- case 'sepia':
- case 'contrast':
- case 'opacity':
+ case 'sepia':
+ case 'contrast':
+ case 'opacity':
case 'saturate':
item.CSSFilterSet(inits[j].element, inits[j].property, inits[j].value);
item.CSSFilterApply(inits[j].element);
@@ -5923,7 +5936,7 @@
}
// hover
- var effects = G.tn.hoverEffects.get();
+ var effects = G.tn.hoverEffects.get();
for( var j = 0; j < effects.length; j++) {
if( effects[j].firstKeyframe === true ) {
switch( effects[j].type ) {
@@ -5941,9 +5954,9 @@
case 'brightness':
case 'grayscale':
case 'sepia':
- case 'contrast':
- case 'opacity':
- case 'saturate':
+ case 'contrast':
+ case 'opacity':
+ case 'saturate':
item.CSSFilterSet(effects[j].element, effects[j].type, effects[j].from);
item.CSSFilterApply(effects[j].element);
break;
@@ -6173,7 +6186,7 @@
// In order to leave things as is, I used ID to identify the extension
// https://stackoverflow.com/questions/6997262/how-to-pull-url-file-extension-out-of-url-string-using-javascript
// Make sure the method used for verifying the extension matches the kind of url your selfhosted video has
- var extension = url.split('.').pop();
+ var extension = url.split('.').pop().toLowerCase();
// supported extensions
var s = ( extension === 'mp4' || extension === 'webm' || extension === 'ogv' || extension === '3gp' ) ? extension : null ;
@@ -6301,13 +6314,15 @@
// media source url - img is the default media kind
newItem.setMediaURL( src, 'img');
-debugger;
+
// manage media kinds other than IMG
jQuery.each(mediaList, function ( n, media ) {
var id = media.getID(src);
if( id != null ) {
+ if( thumbsrc == src && typeof media.thumbUrl == 'function' ) {
+ thumbsrc = media.thumbUrl(id);
+ }
if( typeof media.url == 'function' ) { src = media.url(id); }
- if( typeof media.thumbUrl == 'function' ) { thumbsrc = media.thumbUrl(id); }
newItem.mediaKind = media.kind;
newItem.mediaMarkup = ( media.selfhosted ) ? media.markup( src ) : media.markup(id);
return false;
@@ -6410,7 +6425,7 @@ debugger;
if( fu !== null ) {
typeof fu == 'function' ? fu(newItem, 'api', item) : window[fu](newItem, 'api', item);
}
-
+
AlbumPostProcess(albumID);
});
@@ -6443,7 +6458,7 @@ debugger;
G.I[0].contentIsLoaded = true;
jQuery.each($elements, function(i, item){
-
+
// compare to group defined on the element that has been clicked (lightbox standalone)
if( item.dataset.nanogallery2Lgroup != group ) { return; }
@@ -6526,7 +6541,6 @@ debugger;
src = G.O.itemsBaseURL + src;
}
-
// THUMBNAIL IMAGE
var thumbsrc = '';
// src attribute (img element)
@@ -6547,7 +6561,6 @@ debugger;
// ignore if no media URL at all
if( src === undefined && thumbsrc === undefined ) { return; }
-
//newObj.description=jQuery(item).attr('data-ngdesc');
var description = data['data-ngdesc'];
var ID = data['id'] || data['data-ngid'];
@@ -6582,8 +6595,10 @@ debugger;
jQuery.each(mediaList, function ( n, media ) {
var id = media.getID(src);
if( id != null ) {
+ if( thumbsrc == src && typeof media.thumbUrl == 'function' ) {
+ thumbsrc = media.thumbUrl(id);
+ }
if( typeof media.url == 'function' ) { src = media.url(id); }
- if( typeof media.thumbUrl == 'function' ) { thumbsrc = media.thumbUrl(id); }
newItem.mediaKind = media.kind;
newItem.mediaMarkup = ( media.selfhosted ) ? media.markup( src ) : media.markup(id);
return false;
@@ -6925,11 +6940,11 @@ debugger;
}
}
- if( G.O.fnThumbnailDisplayEffect !== '' ) {
- G.tn.opt.lN.displayTransition = 'CUSTOM';
- G.tn.opt.l1.displayTransition = 'CUSTOM';
- }
- if( G.O.fnThumbnailL1DisplayEffect !== '' ) {
+ if( G.O.fnThumbnailDisplayEffect !== '' ) {
+ G.tn.opt.lN.displayTransition = 'CUSTOM';
+ G.tn.opt.l1.displayTransition = 'CUSTOM';
+ }
+ if( G.O.fnThumbnailL1DisplayEffect !== '' ) {
G.tn.opt.l1.displayTransition = 'CUSTOM';
}
@@ -7908,15 +7923,15 @@ debugger;
this.splice(i, 1);
}
}
- };
-
- // IE11 for startsWith
- // thanks to @lichtamberg - https://github.com/lichtamberg
- if (!String.prototype.startsWith) {
- String.prototype.startsWith = function(searchString, position) {
- position = position || 0;
- return this.indexOf(searchString, position) === position;
- };
+ };
+
+ // IE11 for startsWith
+ // thanks to @lichtamberg - https://github.com/lichtamberg
+ if (!String.prototype.startsWith) {
+ String.prototype.startsWith = function(searchString, position) {
+ position = position || 0;
+ return this.indexOf(searchString, position) === position;
+ };
}
}
@@ -7983,16 +7998,16 @@ debugger;
if( G.I[idx].downloadURL != undefined && G.I[idx].downloadURL != '' ) {
url = G.I[idx].downloadURL;
}
-
- var a = document.createElement('a');
- a.href = url;
+
+ var a = document.createElement('a');
+ a.href = url;
// a.download = url.split('.').pop();
a.download = url.split('/').pop();
a.target = '_blank';
- a.style.display = 'none';
- document.body.appendChild(a);
- a.click();
- document.body.removeChild(a);
+ a.style.display = 'none';
+ document.body.appendChild(a);
+ a.click();
+ document.body.removeChild(a);
}
@@ -8021,8 +8036,8 @@ debugger;
var fu=G.O.fnShoppingCartUpdated;
if( fu !== null ) {
- typeof fu == 'function' ? fu(G.shoppingCart, G.I[idx], source) : window[fu](G.shoppingCart, G.I[idx], source);
- }
+ typeof fu == 'function' ? fu(G.shoppingCart, G.I[idx], source) : window[fu](G.shoppingCart, G.I[idx], source);
+ }
TriggerCustomEvent('shoppingCartUpdated');
}
}
@@ -8066,7 +8081,7 @@ debugger;
ThumbnailSelectionSetIcon( item );
- // called when the selection status of an item changed
+ // called when the selection status of an item changed
var fu=G.O.fnThumbnailSelection;
if( fu !== null ) {
typeof fu == 'function' ? fu(item.$elt, item, G.I) : window[fu](item.$elt, item, G.I);
@@ -8409,7 +8424,7 @@ debugger;
cnt++;
}
- // opens media with external viewer
+ // opens media with external viewer
var fu = G.O.fnThumbnailOpen;
if( fu !== null ) {
typeof fu == 'function' ? fu(items) : window[fu](items);
@@ -8477,7 +8492,7 @@ debugger;
G.VOM.zoom.userFactor = 3;
}
}
- function ViewerZoomMin() {
+ function ViewerZoomMin() {
if( G.VOM.zoom.userFactor < 0.2 ) {
G.VOM.zoom.userFactor = 0.2;
@@ -8579,7 +8594,7 @@ debugger;
else {
// set the pan position of each media container
ViewerMediaPanX( G.VOM.swipePosX );
- $img.children().eq(1)[0].style[G.CSStransformName]= 'translate(0px, 0px) rotate('+ item.rotationAngle +'deg)';
+ $img.children().eq(1)[0].style[G.CSStransformName]= 'translate(0px, 0px) rotate('+ item.rotationAngle +'deg)';
}
}
@@ -8593,9 +8608,9 @@ debugger;
}
posX += G.VOM.zoom.posX;
- posY += G.VOM.zoom.posY;
-
- // imageContainer.children().eq(1)[0].style[G.CSStransformName]= 'translate('+ posX + 'px, '+ posY + 'px)';
+ posY += G.VOM.zoom.posY;
+
+ // imageContainer.children().eq(1)[0].style[G.CSStransformName]= 'translate('+ posX + 'px, '+ posY + 'px)';
imageContainer.children().eq(1)[0].style[G.CSStransformName]= 'translate('+ posX + 'px, '+ posY + 'px) rotate('+ G.VOM.content.current.NGY2Item().rotationAngle +'deg)';
@@ -8841,6 +8856,7 @@ debugger;
var idx = G.VOM.items[i].ngy2ItemIdx;
var o = G.I[idx];
var src = (o.thumbImg().src).replace(/'/g, "%27"); // replace single quote with %27
+ src = src.replace(/\\/g, '\\\\'); // single backslashes are replaced by double backslashes
t += '';
}
G.VOM.gallery.gwidth = (tw+2*gutter) * G.VOM.items.length;
@@ -9170,9 +9186,9 @@ debugger;
}
function ViewerToolsOpacity( op ) {
- if( G.VOM.$toolbar != null ) {
- G.VOM.$toolbar.css('opacity', op);
- }
+ if( G.VOM.$toolbar != null ) {
+ G.VOM.$toolbar.css('opacity', op);
+ }
if( G.VOM.$toolbarTL != null ) {
G.VOM.$toolbarTL.css('opacity', op);
}
@@ -9266,16 +9282,16 @@ debugger;
case 'linkOriginal':
StopPropagationPreventDefault(e);
OpenOriginal( G.VOM.content.current.NGY2Item() );
- break;
- case 'rotateLeft':
- StopPropagationPreventDefault(e);
- ViewerImageRotate(-90);
- break;
- case 'rotateRight':
- StopPropagationPreventDefault(e);
- ViewerImageRotate(90);
break;
- case 'shoppingcart':
+ case 'rotateLeft':
+ StopPropagationPreventDefault(e);
+ ViewerImageRotate(-90);
+ break;
+ case 'rotateRight':
+ StopPropagationPreventDefault(e);
+ ViewerImageRotate(90);
+ break;
+ case 'shoppingcart':
StopPropagationPreventDefault(e);
AddToCart( G.VOM.items[G.VOM.content.current.vIdx].ngy2ItemIdx, 'lightbox');
break;
@@ -9283,23 +9299,23 @@ debugger;
// custom button
var fu = G.O.fnImgToolbarCustClick;
- if( ngy2action.indexOf('custom') == 0 && fu !== null ) {
+ if( ngy2action.indexOf('custom') == 0 && fu !== null ) {
typeof fu == 'function' ? fu(ngy2action, $this, G.VOM.content.current.NGY2Item() ) : window[fu](ngy2action, $this, G.VOM.content.current.NGY2Item() );
- }
- }
-
- // rotate displayed image
- function ViewerImageRotate( angle ) {
- var item = G.VOM.content.current.NGY2Item();
- if( item.mediaKind == 'img' ) {
- item.rotationAngle += angle;
- item.rotationAngle = item.rotationAngle % 360;
- if( item.rotationAngle < 0 ) {
- item.rotationAngle += 360;
- }
- ViewerMediaPanX( 0 );
- ViewerMediaSetPosAndZoomOne( G.VOM.content.current, true );
- }
+ }
+ }
+
+ // rotate displayed image
+ function ViewerImageRotate( angle ) {
+ var item = G.VOM.content.current.NGY2Item();
+ if( item.mediaKind == 'img' ) {
+ item.rotationAngle += angle;
+ item.rotationAngle = item.rotationAngle % 360;
+ if( item.rotationAngle < 0 ) {
+ item.rotationAngle += 360;
+ }
+ ViewerMediaPanX( 0 );
+ ViewerMediaSetPosAndZoomOne( G.VOM.content.current, true );
+ }
}
@@ -9308,9 +9324,9 @@ debugger;
var content = '';
content += '';
- if( ng2item.author != '' ) {
+ if( ng2item.author != '' ) {
content += '';
- }
+ }
if( ng2item.exif.model != '' ) {
content += '';
}
@@ -9432,7 +9448,7 @@ debugger;
// custom button
if( e.indexOf('custom') == 0 ) {
var t = '';
- // content to display from custom script
+ // content to display from custom script
var fu = G.O.fnImgToolbarCustInit;
if( fu !== null ) {
typeof fu == 'function' ? fu(e) : window[fu](e);
@@ -9537,9 +9553,9 @@ debugger;
// custom elements
var $cu = G.VOM.$viewer.find('.ngy2CustomBtn');
var fu = G.O.fnImgToolbarCustDisplay;
- if( $cu.length > 0 && fu !== null ) {
+ if( $cu.length > 0 && fu !== null ) {
typeof fu == 'function' ? fu($cu, item) : window[fu]($cu, item);
- }
+ }
// set event handlers again
ViewerToolsOn();
@@ -9559,8 +9575,8 @@ debugger;
G.VOM.content.current.$media[0].style[G.CSStransformName] = 'translate(' + posX + 'px, 0px)';
// });
- var itemPrevious = G.VOM.content.previous.NGY2Item();
- var itemNext = G.VOM.content.next.NGY2Item();
+ var itemPrevious = G.VOM.content.previous.NGY2Item();
+ var itemNext = G.VOM.content.next.NGY2Item();
// next/previous media
if( G.O.imageTransition.startsWith('SWIPE') ) {
@@ -9575,7 +9591,7 @@ debugger;
if( G.O.imageTransition == 'SWIPE' ) { sc = 1; }
if( posX > 0 ) {
- let dir = G.VOM.window.lastWidth;
+ let dir = G.VOM.window.lastWidth;
if( itemPrevious.mediaTransition() ) {
// window.ng_draf( function() {
G.VOM.content.previous.$media[0].style[G.CSStransformName] = 'translate(' + (-dir + posX) + 'px, 0px) scale(' + sc + ')';
@@ -9871,7 +9887,7 @@ debugger;
ViewerSetMediaVisibility(G.VOM.content.previous, 0);
if( nextItem.mediaKind == 'img' ) {
G.VOM.ImageLoader.loadImage(VieweImgSizeRetrieved, nextItem);
- }
+ }
else {
ViewerMediaCenterNotImg( G.VOM.content.next.$media );
}
@@ -9934,13 +9950,13 @@ debugger;
ViewerSetMediaVisibility(G.VOM.content.current, 1);
G.VOM.zoom.userFactor = 1;
}
-
- if( G.VOM.content.next.NGY2Item() == item ) { // next media
- G.VOM.content.next.$media.children().eq(0).attr('class', 'nGY2ViewerMediaLoaderHidden'); // hide preloader
- }
- if( G.VOM.content.previous.NGY2Item() == item ) { // previous media
- G.VOM.content.previous.$media.children().eq(0).attr('class', 'nGY2ViewerMediaLoaderHidden'); // hide preloader
- }
+
+ if( G.VOM.content.next.NGY2Item() == item ) { // next media
+ G.VOM.content.next.$media.children().eq(0).attr('class', 'nGY2ViewerMediaLoaderHidden'); // hide preloader
+ }
+ if( G.VOM.content.previous.NGY2Item() == item ) { // previous media
+ G.VOM.content.previous.$media.children().eq(0).attr('class', 'nGY2ViewerMediaLoaderHidden'); // hide preloader
+ }
ViewerMediaSetPosAndZoom();
@@ -9956,7 +9972,7 @@ debugger;
if( item.mediaKind == 'img' && item.imageWidth == 0 ) {
// do not display image if width is unknown (--> callback will set the width when know)
// setting opacity to 0 is not enough -> it is mandatory to change also the visibility to hidden to avoid responds to events (click/touch)
- // $media.children().css({ opacity: 0, visibility: 'hidden' });
+ // $media.children().css({ opacity: 0, visibility: 'hidden' });
$media.children().eq(1).css({ opacity: 0, visibility: 'hidden' }); // hide media
// $media.css({ opacity: 0, visibility: 'hidden' });
return;
@@ -9969,7 +9985,7 @@ debugger;
}
else {
// $media.css({ opacity: opacity, visibility: 'visible' });
- $media.children().css({ opacity: opacity, visibility: 'visible' }); // display media
+ $media.children().css({ opacity: opacity, visibility: 'visible' }); // display media
}
}
@@ -10358,13 +10374,13 @@ debugger;
// PAN on gallery (pagination)
G.GOM.hammertime.on('pan', function(ev) {
if( !G.VOM.viewerDisplayed ) {
- if( G.O.paginationSwipe && G.layout.support.rows && G.galleryDisplayMode.Get() == 'PAGINATION' ) {
- if( Math.abs(ev.deltaY) > G.GOM.panThreshold ) {
- G.GOM.panYOnly = true;
- }
+ if( G.O.paginationSwipe && G.layout.support.rows && G.galleryDisplayMode.Get() == 'PAGINATION' ) {
+ if( Math.abs(ev.deltaY) > G.GOM.panThreshold ) {
+ G.GOM.panYOnly = true;
+ }
if( !G.GOM.panYOnly ) {
- G.$E.conTn.css( G.CSStransformName , 'translate('+(ev.deltaX)+'px,0px)');
- }
+ G.$E.conTn.css( G.CSStransformName , 'translate('+(ev.deltaX)+'px,0px)');
+ }
}
}
});
@@ -10379,8 +10395,8 @@ debugger;
if( ev.deltaX < -50 ) {
paginationNextPage();
return;
- }
- }
+ }
+ }
G.GOM.panYOnly = false;
G.$E.conTn.css( G.CSStransformName , 'translate(0px,0px)');
// pX=0;
@@ -11520,9 +11536,11 @@ return ngImagesLoaded;
//
// replace "Tweenable" with "NGTweenable"
// replace "define.amd" with "define.amdDISABLED"
+// replace "var root = this || Function('return this')();" with "const root = typeof window !== 'undefined' ? window : global"
+
/* shifty - v1.5.3 - 2016-11-29 - http://jeremyckahn.github.io/shifty */
;(function () {
- var root = this || Function('return this')();
+ const root = typeof window !== 'undefined' ? window : global
/**
* Shifty Core
diff --git a/dist/jquery.nanogallery2.min.js b/dist/jquery.nanogallery2.min.js
index eac32a26..97ea2979 100644
--- a/dist/jquery.nanogallery2.min.js
+++ b/dist/jquery.nanogallery2.min.js
@@ -1,4 +1,4 @@
-/* nanogallery2 - v3.0.4 - 2020-12-25 */
+/* nanogallery2 - v3.0.5 - 2021-01-06 */
/*!
* @preserve nanogallery2 - javascript photo / video gallery and lightbox
* Homepage: http://nanogallery2.nanostudio.org
@@ -18,20 +18,33 @@
* - 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(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports&&"function"==typeof require?e(require("jquery")):e(jQuery)}((function(e){"use strict";function t(e){var t=document.getElementById("ngyColorHelperToRGB");return null===t&&((t=document.createElement("div")).id="ngyColorHelperToRGB",t.style.cssText="display: none; color:"+e+";",document.body.appendChild(t)),getComputedStyle(t).color}function n(e,t,n){var i="";if("RGBA("==t.toUpperCase().substring(0,5)&&(i="a",t="rgb("+t.substring(5)),"number"!=typeof e||e<-1||e>1||"string"!=typeof t||"r"!=t[0]&&"#"!=t[0]||"string"!=typeof n&&void 0!==n)return null;function a(e){var t=e.length,n=new Object;if(t>9){if((e=e.split(",")).length<3||e.length>4)return null;n[0]=o(e[0].slice(4)),n[1]=o(e[1]),n[2]=o(e[2]),n[3]=e[3]?parseFloat(e[3]):-1}else{if(8==t||6==t||t<4)return null;t<6&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+(t>4?e[4]+""+e[4]:"")),e=o(e.slice(1),16),n[0]=e>>16&255,n[1]=e>>8&255,n[2]=255&e,n[3]=9==t||5==t?r((e>>24&255)/255*1e4)/1e4:-1}return n}var o=parseInt,r=Math.round,l=t.length>9,s=(l="string"==typeof n?n.length>9||"c"==n&&!l:l,e<0),u=(e=s?-1*e:e,n=n&&"c"!=n?n:s?"#000000":"#FFFFFF",a(t)),c=a(n);return u&&c?l?"rgb"+i+"("+r((c[0]-u[0])*e+u[0])+","+r((c[1]-u[1])*e+u[1])+","+r((c[2]-u[2])*e+u[2])+(u[3]<0&&c[3]<0?")":","+(u[3]>-1&&c[3]>-1?r(1e4*((c[3]-u[3])*e+u[3]))/1e4:c[3]<0?u[3]:c[3])+")"):"#"+(4294967296+16777216*(u[3]>-1&&c[3]>-1?r(255*((c[3]-u[3])*e+u[3])):c[3]>-1?r(255*c[3]):u[3]>-1?r(255*u[3]):255)+65536*r((c[0]-u[0])*e+u[0])+256*r((c[1]-u[1])*e+u[1])+r((c[2]-u[2])*e+u[2])).toString(16).slice(u[3]>-1||c[3]>-1?1:3):null}function i(e){if(null===e||"object"!=typeof e)return e;var t=e.constructor();for(var n in e)t[n]=i(e[n]);return t}function a(){var e=jQuery(window);return{l:e.scrollLeft(),t:e.scrollTop(),w:e.width(),h:e.height()}}function o(e,t){var n=0;""==e&&(e="*"),jQuery(e).each((function(){var e=parseInt(jQuery(this).css("z-index"));n=e>n?e:n})),n++,jQuery(t).css("z-index",n)}var r=function(e){return{}.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase()};function l(){this.LightboxReOpen=function(){m()},this.ReloadAlbum=function(){if(""===u.O.kind)throw"Not supported for this content source:"+u.O.kind;var e=u.GOM.albumIdx;if(-1==e)throw"Current album not found.";for(var t=u.I[e].GetID(),n=u.I.length,i=0;i1&&e--,u.GOM.pagination.currentPage=e,u.GOM.ScrollToTop(),L(),E(!0),!1},this.PaginationCountPages=function(){return 0==u.GOM.items.length?0:Math.ceil((u.GOM.items[u.GOM.items.length-1].row+1)/u.galleryMaxRows.Get())};var s=function(e,t,n){var i;return function(){var a=this,o=arguments;function r(){n||e.apply(a,o),i=null}i?clearTimeout(i):n&&e.apply(a,o),i=setTimeout(r,t||100)}};window.ng_draf=function(e){return requestAnimationFrame((function(){window.requestAnimationFrame(e)}))},window.requestTimeout=function(e,t){if(!(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame&&window.mozCancelRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame))return window.setTimeout(e,t);var n=(new Date).getTime(),i=new Object;return i.value=requestAnimFrame((function a(){(new Date).getTime()-n>=t?e.call():i.value=requestAnimFrame(a)})),i},window.requestAnimFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){window.setTimeout(e,1e3/60)},window.clearRequestTimeout=function(e){window.cancelAnimationFrame?window.cancelAnimationFrame(e.value):window.webkitCancelAnimationFrame?window.webkitCancelAnimationFrame(e.value):window.webkitCancelRequestAnimationFrame?window.webkitCancelRequestAnimationFrame(e.value):window.mozCancelRequestAnimationFrame?window.mozCancelRequestAnimationFrame(e.value):window.oCancelRequestAnimationFrame?window.oCancelRequestAnimationFrame(e.value):window.msCancelRequestAnimationFrame?window.msCancelRequestAnimationFrame(e.value):clearTimeout(e)};var u=this;function c(e){this.$e=null,this.ngy2ItemIdx=e,this.mediaNumber=u.VOM.items.length+1,this.posX=0,this.posY=0}u.I=[],u.Id=[],u.O=null,u.baseEltID=null,u.$E={base:null,conTnParent:null,conLoadingB:null,conConsole:null,conNavigationBar:null,conTnBottom:null,scrollableParent:null},u.shoppingCart=[],u.layout={internal:!0,engine:"",support:{rows:!1},prerequisite:{imageSize:!1},SetEngine:function(){if(u.layout.internal){if("auto"==u.tn.settings.width[u.GOM.curNavLevel][u.GOM.curWidth]||""==u.tn.settings.width[u.GOM.curNavLevel][u.GOM.curWidth])return u.layout.engine="JUSTIFIED",u.layout.support.rows=!0,void(u.layout.prerequisite.imageSize=!0);if("auto"==u.tn.settings.height[u.GOM.curNavLevel][u.GOM.curWidth]||""==u.tn.settings.height[u.GOM.curNavLevel][u.GOM.curWidth])return u.layout.engine="CASCADING",u.layout.support.rows=!1,void(u.layout.prerequisite.imageSize=!0);if(null!=u.tn.settings.getMosaic())return u.layout.engine="MOSAIC",u.layout.support.rows=!0,void(u.layout.prerequisite.imageSize=!1);u.layout.engine="GRID",u.layout.support.rows=!0,u.layout.prerequisite.imageSize=!1}}},u.galleryResizeEventEnabled=!1,u.galleryMaxRows={l1:0,lN:0,Get:function(){return u.galleryMaxRows[u.GOM.curNavLevel]}},u.galleryMaxItems={l1:0,lN:0,Get:function(){return u.galleryMaxItems[u.GOM.curNavLevel]}},u.galleryFilterTags={l1:0,lN:0,Get:function(){return u.galleryFilterTags[u.GOM.curNavLevel]}},u.galleryFilterTagsMode={l1:0,lN:0,Get:function(){return u.galleryFilterTagsMode[u.GOM.curNavLevel]}},u.galleryDisplayMode={l1:"FULLCONTENT",lN:"FULLCONTENT",Get:function(){return u.galleryDisplayMode[u.GOM.curNavLevel]}},u.galleryLastRowFull={l1:!1,lN:!1,Get:function(){return u.galleryLastRowFull[u.GOM.curNavLevel]}},u.gallerySorting={l1:"",lN:"",Get:function(){return u.gallerySorting[u.GOM.curNavLevel]}},u.galleryDisplayTransition={l1:"none",lN:"none",Get:function(){return u.galleryDisplayTransition[u.GOM.curNavLevel]}},u.galleryDisplayTransitionDuration={l1:500,lN:500,Get:function(){return u.galleryDisplayTransitionDuration[u.GOM.curNavLevel]}},u.$currentTouchedThumbnail=null,u.tn={opt:{l1:{crop:!0,stacks:0,stacksTranslateX:0,stacksTranslateY:0,stacksTranslateZ:0,stacksRotateX:0,stacksRotateY:0,stacksRotateZ:0,stacksScale:0,borderHorizontal:0,borderVertical:0,baseGridHeight:0,displayTransition:"FADEIN",displayTransitionStartVal:0,displayTransitionEasing:"easeOutQuart",displayTransitionDuration:240,displayInterval:15},lN:{crop:!0,stacks:0,stacksTranslateX:0,stacksTranslateY:0,stacksTranslateZ:0,stacksRotateX:0,stacksRotateY:0,stacksRotateZ:0,stacksScale:0,borderHorizontal:0,borderVertical:0,baseGridHeight:0,displayTransition:"FADEIN",displayTransitionStartVal:0,displayTransitionEasing:"easeOutQuart",displayTransitionDuration:240,displayInterval:15},Get:function(e){return u.tn.opt[u.GOM.curNavLevel][e]}},scale:1,labelHeight:{l1:0,lN:0,get:function(){return u.tn.labelHeight[u.GOM.curNavLevel]}},defaultSize:{width:{l1:{xs:0,sm:0,me:0,la:0,xl:0},lN:{xs:0,sm:0,me:0,la:0,xl:0}},height:{l1:{xs:0,sm:0,me:0,la:0,xl:0},lN:{xs:0,sm:0,me:0,la:0,xl:0}},getWidth:function(){return u.tn.defaultSize.width[u.GOM.curNavLevel][u.GOM.curWidth]},getOuterWidth:function(){u.tn.borderWidth=u.tn.opt.Get("borderHorizontal"),u.tn.borderHeight=u.tn.opt.Get("borderVertical");var e=u.tn.defaultSize.width[u.GOM.curNavLevel][u.GOM.curWidth]+2*u.tn.opt.Get("borderHorizontal");return"right"!=u.O.thumbnailLabel.get("position")&&"left"!=u.O.thumbnailLabel.get("position")||(e+=u.tn.defaultSize.width[u.GOM.curNavLevel][u.GOM.curWidth]),e},getHeight:function(){return u.tn.defaultSize.height[u.GOM.curNavLevel][u.GOM.curWidth]},getOuterHeight:function(){return u.tn.defaultSize.height[u.GOM.curNavLevel][u.GOM.curWidth]+2*u.tn.opt.Get("borderVertical")}},settings:{width:{l1:{xs:0,sm:0,me:0,la:0,xl:0,xsc:"u",smc:"u",mec:"u",lac:"u",xlc:"u"},lN:{xs:0,sm:0,me:0,la:0,xl:0,xsc:"u",smc:"u",mec:"u",lac:"u",xlc:"u"}},height:{l1:{xs:0,sm:0,me:0,la:0,xl:0,xsc:"u",smc:"u",mec:"u",lac:"u",xlc:"u"},lN:{xs:0,sm:0,me:0,la:0,xl:0,xsc:"u",smc:"u",mec:"u",lac:"u",xlc:"u"}},getH:function(e,t){var n=null==e?u.GOM.curNavLevel:e,i=null==t?u.GOM.curWidth:t;return"MOSAIC"==u.layout.engine?this.height[n][i]*this.mosaic[n+"Factor"].h[i]:this.height[n][i]},getW:function(e,t){var n=null==e?u.GOM.curNavLevel:e,i=null==t?u.GOM.curWidth:t;return"MOSAIC"==u.layout.engine?this.width[n][i]*this.mosaic[n+"Factor"].w[i]:this.width[n][i]},mosaic:{l1:{xs:null,sm:null,me:null,la:null,xl:null},lN:{xs:null,sm:null,me:null,la:null,xl:null},l1Factor:{h:{xs:1,sm:1,me:1,la:1,xl:1},w:{xs:1,sm:1,me:1,la:1,xl:1}},lNFactor:{h:{xs:1,sm:1,me:1,la:1,xl:1},w:{xs:1,sm:1,me:1,la:1,xl:1}}},getMosaic:function(){return this.mosaic[u.GOM.curNavLevel][u.GOM.curWidth]},mosaicCalcFactor:function(e,t){for(var n=1,i=1,a=0;at?(r&&(clearTimeout(r),r=null),l=u,o=e.apply(i,a),r||(i=a=null)):r||!1===n.trailing||(r=setTimeout(s,c)),o}}(x,15,{leading:!1}),u.blockList=null,u.allowList=null,u.albumList=[],u.locationHashLastUsed="",u.custGlobals={},u.touchAutoOpenDelayTimerID=0,u.i18nLang="",u.timeLastTouchStart=0,u.custGlobals={},u.markupOrApiProcessed=!1,u.GOM={albumIdx:-1,clipArea:{top:0,height:0},displayArea:{width:0,height:0},displayAreaLast:{width:0,height:0},displayedMoreSteps:0,items:[],$imgPreloader:[],thumbnails2Display:[],itemsDisplayed:0,firstDisplay:!0,firstDisplayTime:0,navigationBar:{displayed:!1,$newContent:""},cache:{viewport:null,containerOffset:null,areaWidth:100},nbSelected:0,pagination:{currentPage:0},panThreshold:60,panYOnly:!1,lastFullRow:-1,lastDisplayedIdx:-1,displayInterval:{from:0,len:0},hammertime:null,curNavLevel:"l1",curWidth:"me",albumSearch:"",albumSearchTags:"",lastZIndex:0,lastRandomValue:0,slider:{hostIdx:-1,hostItem:null,currentIdx:0,nextIdx:0,timerID:0,tween:null},NGY2Item:function(e){if(null==u.GOM.items[e]||null==u.GOM.items[e])return null;var t=u.GOM.items[e].thumbnailIdx;return u.I[t]},GTn:function(e,t,n){this.thumbnailIdx=e,this.width=0,this.height=0,this.top=0,this.left=0,this.row=0,this.imageWidth=t,this.imageHeight=n,this.resizedContentWidth=0,this.resizedContentHeight=0,this.displayed=!1,this.neverDisplayed=!0,this.inDisplayArea=!1},ScrollToTop:function(){var e,t,n,i;if(!u.GOM.firstDisplay&&(null!==u.$E.scrollableParent||(e=u.$E.base,t=20,n=a(),(i=e.offset()).top>=n.t&&i.top<=n.t+n.h-t)||u.$E.base.get(0).scrollIntoView(),null!==u.$E.scrollableParent)){var o=u.$E.scrollableParent.scrollTop(),r=Math.abs(u.$E.scrollableParent.offset().top-u.$E.base.offset().top-o);o>r&&window.ng_draf((function(){u.$E.scrollableParent.scrollTop(r)}))}}},u.VOM={viewerDisplayed:!1,viewerIsFullscreen:!1,infoDisplayed:!1,toolbarsDisplayed:!0,toolsHide:null,zoom:{posX:0,posY:0,userFactor:1,isZooming:!1},padding:{H:0,V:0},window:{lastWidth:0,lastHeight:0},$viewer:null,$toolbar:null,$toolbarTL:null,$toolbarTR:null,toolbarMode:"std",playSlideshow:!1,playSlideshowTimerID:0,slideshowDelay:3e3,albumID:-1,viewerMediaIsChanged:!1,items:[],panMode:"off",$baseCont:null,$content:null,content:{previous:{vIdx:-1,$media:null,NGY2Item:function(){return u.I[u.VOM.items[u.VOM.content.previous.vIdx].ngy2ItemIdx]}},current:{vIdx:-1,$media:null,NGY2Item:function(){return u.I[u.VOM.items[u.VOM.content.current.vIdx].ngy2ItemIdx]}},next:{vIdx:-1,$media:null,NGY2Item:function(){return u.I[u.VOM.items[u.VOM.content.next.vIdx].ngy2ItemIdx]}}},IdxNext:function(){var e=0;return u.VOM.content.current.vIdx=t){var n=this.oneTmbWidth*u.VOM.content.current.vIdx;n+this.posX=this.vwidth&&(this.posX=this.vwidth-(n+this.oneTmbWidth))}this.PanGallery(0)}},PanGallery:function(e){this.gwidththis.vwidth-this.oneTmbWidth&&(this.posX=this.vwidth-this.oneTmbWidth),this.posX+this.gwidthu.VOM.ImageLoader.maxChecks?(u.VOM.ImageLoader.list[i]=null,e.callback(0,0,e.ngitem,e.checks)):(t++,e.checks++));0==t&&(u.VOM.ImageLoader.list=[],clearInterval(u.VOM.ImageLoader.intervalHandle),delete u.VOM.ImageLoader.intervalHandle)}}},u.popup={isDisplayed:!1,$elt:null,close:function(){null!=this.$elt&&(new NGTweenable).tween({from:{opacity:1},to:{opacity:0},attachment:{t:this},easing:"easeInOutSine",duration:100,step:function(e,t){null!=t.t.$elt&&t.t.$elt.css("opacity",e.opacity)},finish:function(e,t){null!=t.t.$elt&&(t.t.$elt.remove(),t.t.$elt=null),t.t.isDisplayed=!1}})}},u.galleryTheme_dark={navigationBar:{background:"none",borderTop:"",borderBottom:"",borderRight:"",borderLeft:""},navigationBreadcrumb:{background:"#111",color:"#fff",colorHover:"#ccc",borderRadius:"4px"},navigationFilter:{color:"#ddd",background:"#111",colorSelected:"#fff",backgroundSelected:"#111",borderRadius:"4px"},navigationPagination:{background:"#111",color:"#fff",colorHover:"#ccc",borderRadius:"4px"},thumbnail:{background:"#444",backgroundImage:"linear-gradient(315deg, #111 0%, #445 90%)",borderColor:"#000",borderRadius:"0px",labelOpacity:1,labelBackground:"rgba(34, 34, 34, 0)",titleColor:"#fff",titleBgColor:"transparent",titleShadow:"",descriptionColor:"#ccc",descriptionBgColor:"transparent",descriptionShadow:"",stackBackground:"#aaa"},thumbnailIcon:{padding:"5px",color:"#fff",shadow:""},pagination:{background:"#181818",backgroundSelected:"#666",color:"#fff",borderRadius:"2px",shapeBorder:"3px solid #666",shapeColor:"#444",shapeSelectedColor:"#aaa"}},u.galleryTheme_light={navigationBar:{background:"none",borderTop:"",borderBottom:"",borderRight:"",borderLeft:""},navigationBreadcrumb:{background:"#eee",color:"#000",colorHover:"#333",borderRadius:"4px"},navigationFilter:{background:"#eee",color:"#222",colorSelected:"#000",backgroundSelected:"#eee",borderRadius:"4px"},navigationPagination:{background:"#eee",color:"#000",colorHover:"#333",borderRadius:"4px"},thumbnail:{background:"#444",backgroundImage:"linear-gradient(315deg, #111 0%, #445 90%)",borderColor:"#000",labelOpacity:1,labelBackground:"rgba(34, 34, 34, 0)",titleColor:"#fff",titleBgColor:"transparent",titleShadow:"",descriptionColor:"#ccc",descriptionBgColor:"transparent",descriptionShadow:"",stackBackground:"#888"},thumbnailIcon:{padding:"5px",color:"#fff"},pagination:{background:"#eee",backgroundSelected:"#aaa",color:"#000",borderRadius:"2px",shapeBorder:"3px solid #666",shapeColor:"#444",shapeSelectedColor:"#aaa"}},u.viewerTheme_dark={background:"#000",barBackground:"rgba(4, 4, 4, 0.2)",barBorder:"0px solid #111",barColor:"#fff",barDescriptionColor:"#ccc"},u.viewerTheme_light={background:"#f8f8f8",barBackground:"rgba(4, 4, 4, 0.7)",barBorder:"0px solid #111",barColor:"#fff",barDescriptionColor:"#ccc"};var h=NGY2Tools.NanoAlert,d=NGY2Tools.NanoConsoleLog;function m(){u.VOM.items=[],u.VOM.albumID="0",u.GOM.curNavLevel="l1";for(var e=0,t=u.$E.base[0].src,n=void 0,i=0;i0?De(n):d(u,"No content for Lightbox standalone.")}function p(e){var t={albumID:"0",imageID:"0"},n=e.split("/");return n.length>0&&(t.albumID=n[0],n.length>1&&(t.imageID=n[1])),t}function g(e,t){u.VOM.viewerDisplayed&&tt(null);var n=NGY2Item.GetIdx(u,t);u.GOM.curNavLevel="lN",0==n&&(u.GOM.curNavLevel="l1"),u.layout.SetEngine(),u.galleryResizeEventEnabled=!1,-1==n&&(NGY2Item.New(u,"","",t,"0","album"),n=u.I.length-1),u.I[n].contentIsLoaded?(de(),u.GOM.pagination.currentPage=0,rt(t,""),w(n)):q(t,g,e,t)}function f(){switch(u.galleryDisplayMode.Get()){case"PAGINATION":u.layout.support.rows&&u.galleryMaxRows.Get()>0&&function(){if(u.$E.conTnBottom.css("opacity",0),u.$E.conTnBottom.children().remove(),0==u.GOM.items.length)return;var e=Math.ceil((u.GOM.items[u.GOM.items.length-1].row+1)/u.galleryMaxRows.Get());if(1==e)return;u.GOM.pagination.currentPage>e-1&&(u.GOM.pagination.currentPage=e-1);if(M(),0==u.GOM.displayInterval.len)return;if("NUMBERS"==u.O.galleryPaginationMode&&u.GOM.pagination.currentPage>0){jQuery('").appendTo(u.$E.conTnBottom).click((function(e){G()}))}var t=0,n=e;if("NUMBERS"!=u.O.galleryPaginationMode)t=0;else{var i=u.O.paginationVisiblePages;if(i>=e)t=0;else{var a=0;a=i%2==1?(i+1)/2:i/2,u.GOM.pagination.currentPagee&&(n=e-1)):(t=u.GOM.pagination.currentPage-a,(n=t+i)>e&&(n=e-1)),n-t'+l+"").appendTo(u.$E.conTnBottom);s.data("pageNumber",o),s.click((function(e){u.GOM.pagination.currentPage=jQuery(this).data("pageNumber"),at("pageChanged"),u.GOM.ScrollToTop(),L(),E(!0)}))}if("NUMBERS"==u.O.galleryPaginationMode&&u.GOM.pagination.currentPage+1