{"version":3,"sources":["webpack://website/./node_modules/lg-video/dist/lg-video.js","webpack://website/./node_modules/lightgallery/dist/js/lightgallery.js"],"names":["a0","$","defaults","videoMaxWidth","autoplayFirstVideo","youtubePlayerParams","vimeoPlayerParams","dailymotionPlayerParams","vkPlayerParams","videojs","videojsOptions","Video","element","this","core","data","$el","s","extend","videoLoaded","init","onHasVideo","event","index","src","html","_this","$slide","eq","find","append","loadVideo","get","play","e","console","error","onAferAppendSlide","$videoCont","hasClass","css","onBeforeSlide","prevIndex","_src","$videoSlide","youtubePlayer","vimeoPlayer","dailymotionPlayer","vkPlayer","html5Player","contentWindow","postMessage","$f","api","pause","attr","replace","dynamic","dynamicEl","$items","_isVideo","isVideo","youtube","vimeo","dailymotion","vk","$outer","addClass","prototype","on","bind","doCss","length","enableSwipe","enableDrag","loadVideoOnclick","removeClass","lGalleryOn","setTimeout","noPoster","videoTitle","video","autoplay","a","title","first","param","html5","fL","substring","is","_loadVideo","_html","$tempImg","destroy","fn","lightGallery","modules","mode","cssEasing","easing","speed","height","width","startClass","backdropDuration","hideBarsDelay","useLeft","ariaLabelledby","ariaDescribedby","closable","loop","escKey","keyPress","controls","slideEndAnimatoin","hideControlOnEnd","mousewheel","getCaptionFromTitleOrAlt","appendSubHtmlTo","subHtmlSelectorRelative","preload","showAfterLoad","selector","selectWithin","nextHtml","prevHtml","iframeMaxWidth","download","counter","appendCounterTo","swipeThreshold","galleryId","Plugin","options","el","constructor","Array","lgBusy","hideBartimeout","isTouch","document","documentElement","children","_hash","window","location","hash","indexOf","parseInt","split","build","trigger","preventDefault","er","returnValue","structure","each","key","slide","arrow","closeGallery","clearTimeout","template","list","i","subHtmlCont","focus","setTop","$inner","prevScrollTop","scrollTop","wH","top","$lGallery","transition","root","style","support","match","addHtml","subHtmlUrl","$currentEle","subHtml","load","j","loadContent","rec","delay","_$img","_poster","_srcset","_sizes","_alt","_hasPoster","getResponsiveSrc","srcItms","rsWidth","rsSrc","__src","splice","push","wWidth","poster","alt","responsive","srcset","sizes","iframe","prepend","videoClass","picturefill","elements","warn","_speed","fromTouch","fromThumb","direction","_prevIndex","touchPrev","touchNext","_length","_time","downloadUrl","arrowDisable","text","goToNextSlide","_loop","goToPrevSlide","keyCode","removeAttr","setTranslate","xValue","yValue","transform","touchMove","startCoords","endCoords","distance","Math","abs","touchEnd","not","isMoved","manageSwipeClass","originalEvent","targetTouches","pageX","isDraging","target","trim","scrollLeft","_touchNext","_touchPrev","deltaY","mousedown","d","off","removeData","remove","err"],"mappings":";0FAAA,QAOI,EAAO,CAAC,cAEP,KAFkB,EAAF,SAAYA,GAC3B,OAUYC,EAVID,OAYtB,WAEQ,aAEA,IAAIE,EAAW,CACXC,cAAe,QAEfC,oBAAoB,EAEpBC,qBAAqB,EACrBC,mBAAmB,EACnBC,yBAAyB,EACzBC,gBAAgB,EAEhBC,SAAS,EACTC,eAAgB,IAGhBC,EAAQ,SAASC,GAUjB,OARAC,KAAKC,KAAOb,EAAEW,GAASG,KAAK,gBAE5BF,KAAKG,IAAMf,EAAEW,GACbC,KAAKC,KAAKG,EAAIhB,EAAEiB,OAAO,GAAIhB,EAAUW,KAAKC,KAAKG,GAC/CJ,KAAKM,aAAc,EAEnBN,KAAKO,OAEEP,MAyNX,SAASQ,EAAWC,EAAOC,EAAOC,EAAKC,GAEnC,IAAIC,EAAQb,KAEZ,GADAa,EAAMZ,KAAKa,OAAOC,GAAGL,GAAOM,KAAK,aAAaC,OAAOJ,EAAMK,UAAUP,EAAK,aAAa,EAAMD,EAAOE,IAChGA,EACA,GAAIC,EAAMZ,KAAKG,EAAER,QACb,IACIA,QAAQiB,EAAMZ,KAAKa,OAAOC,GAAGL,GAAOM,KAAK,aAAaG,IAAI,GAAIN,EAAMZ,KAAKG,EAAEP,gBAAgB,YAClFgB,EAAMP,aAAeO,EAAMZ,KAAKG,EAAEb,oBACnCS,KAAKoB,UAGf,MAAOC,GACLC,QAAQC,MAAM,4CAGdV,EAAMP,aAAeO,EAAMZ,KAAKG,EA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AEPmP,IACDtO,EAAMV,IAAIwI,QAAQ,oBAClBvJ,EAAEgJ,QAAQ0B,UAAUjJ,EAAMgJ,gBAW1BsF,IACKtO,EAAMT,EAAEwC,SAET5C,KAAK8C,OAAOsM,IAAI,2BAGpBhQ,EAAEiQ,WAAWxO,EAAM6G,GAAI,iBAI3B1H,KAAKG,IAAIiP,IAAI,UAGbhQ,EAAE4J,KAAK5J,EAAE8F,GAAGC,aAAaC,SAAS,SAAS6D,GACnCpI,EAAMuE,QAAQ6D,IACdpI,EAAMuE,QAAQ6D,GAAKhE,aAI3BjF,KAAKgE,YAAa,EAElBqF,aAAaxI,EAAMiH,gBACnB9H,KAAK8H,gBAAiB,EACtB1I,EAAEgJ,QAAQgH,IAAI,OACdhQ,EAAE,QAAQ2E,YAAY,sBAElBlD,EAAMwC,QACNxC,EAAMwC,OAAOU,YAAY,cAG7B3E,EAAE,gBAAgB2E,YAAY,MAE9BE,YAAW,WACHpD,EAAMwC,QACNxC,EAAMwC,OAAOiM,SAGjBlQ,EAAE,gBAAgBkQ,SAEbH,GACDtO,EAAMV,IAAIwI,QAAQ,mBAEtB9H,EAAMV,IAAIuJ,UAEX7I,EAAMT,EAAEwF,iBAAmB,KAGlCxG,EAAE8F,GAAGC,aAAe,SAASsC,GACzB,OAAOzH,KAAKgJ,MAAK,WACb,GAAK5J,EAAEc,KAAKF,KAAM,gBAGd,IACIZ,EAAEY,MAAME,KAAK,gBAAgBK,OAC/B,MAAOgP,GACLjO,QAAQC,MAAM,gDALlBnC,EAAEc,KAAKF,KAAM,eAAgB,IAAIwH,EAAOxH,KAAMyH,QAW1DrI,EAAE8F,GAAGC,aAAaC,QAAU,GAz0ChC,GAFQ,IAAUhG,GATb","file":"lightgallery.js","sourcesContent":["/*! lg-video - v1.3.0 - 2020-05-03\n* http://sachinchoolur.github.io/lightGallery\n* Copyright (c) 2020 Sachin N; Licensed GPLv3 */\n\n(function (root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module unless amdModuleId is set\n define(['jquery'], function (a0) {\n return (factory(a0));\n });\n } else if (typeof module === 'object' && module.exports) {\n // Node. Does not work with strict CommonJS, but\n // only CommonJS-like environments that support module.exports,\n // like Node.\n module.exports = factory(require('jquery'));\n } else {\n factory(root[\"jQuery\"]);\n }\n}(this, function ($) {\n\n(function() {\n \n 'use strict';\n\n var defaults = {\n videoMaxWidth: '855px',\n\n autoplayFirstVideo: true,\n\n youtubePlayerParams: false,\n vimeoPlayerParams: false,\n dailymotionPlayerParams: false,\n vkPlayerParams: false,\n\n videojs: false,\n videojsOptions: {}\n };\n\n var Video = function(element) {\n\n this.core = $(element).data('lightGallery');\n\n this.$el = $(element);\n this.core.s = $.extend({}, defaults, this.core.s);\n this.videoLoaded = false;\n\n this.init();\n\n return this;\n };\n\n Video.prototype.init = function() {\n var _this = this;\n\n // Event triggered when video url found without poster\n _this.core.$el.on('hasVideo.lg.tm', onHasVideo.bind(this));\n\n // Set max width for video\n _this.core.$el.on('onAferAppendSlide.lg.tm', onAferAppendSlide.bind(this));\n\n if (_this.core.doCss() && (_this.core.$items.length > 1) && (_this.core.s.enableSwipe || _this.core.s.enableDrag)) {\n _this.core.$el.on('onSlideClick.lg.tm', function() {\n var $el = _this.core.$slide.eq(_this.core.index);\n _this.loadVideoOnclick($el);\n });\n } else {\n\n // For IE 9 and bellow\n _this.core.$slide.on('click.lg', function() {\n _this.loadVideoOnclick($(this));\n });\n }\n\n _this.core.$el.on('onBeforeSlide.lg.tm', onBeforeSlide.bind(this));\n\n _this.core.$el.on('onAfterSlide.lg.tm', function(event, prevIndex) {\n _this.core.$slide.eq(prevIndex).removeClass('lg-video-playing');\n });\n \n if (_this.core.s.autoplayFirstVideo) {\n _this.core.$el.on('onAferAppendSlide.lg.tm', function (e, index) {\n if (!_this.core.lGalleryOn) {\n var $el = _this.core.$slide.eq(index);\n setTimeout(function () {\n _this.loadVideoOnclick($el);\n }, 100);\n }\n });\n }\n };\n\n Video.prototype.loadVideo = function(src, addClass, noPoster, index, html) {\n var _this = this;\n var video = '';\n var autoplay = 1;\n var a = '';\n var isVideo = this.core.isVideo(src, index) || {};\n var videoTitle;\n\n if (_this.core.s.dynamic) {\n videoTitle = _this.core.s.dynamicEl[_this.core.index].title;\n } else {\n videoTitle = _this.core.$items.eq(_this.core.index).attr('title') || _this.core.$items.eq(_this.core.index).find('img').first().attr('alt');\n }\n\n videoTitle = videoTitle ? 'title=\"' + videoTitle + '\"' : '';\n\n // Enable autoplay based on setting for first video if poster doesn't exist\n if (noPoster) {\n if (this.videoLoaded) {\n autoplay = 0;\n } else {\n autoplay = this.core.s.autoplayFirstVideo ? 1 : 0;\n }\n }\n\n if (isVideo.youtube) {\n\n a = '?wmode=opaque&autoplay=' + autoplay + '&enablejsapi=1';\n if (this.core.s.youtubePlayerParams) {\n a = a + '&' + $.param(this.core.s.youtubePlayerParams);\n }\n\n video = '';\n\n } else if (isVideo.vimeo) {\n\n a = '?autoplay=' + autoplay + '&api=1';\n if (this.core.s.vimeoPlayerParams) {\n a = a + '&' + $.param(this.core.s.vimeoPlayerParams);\n }\n\n video = '';\n\n } else if (isVideo.dailymotion) {\n\n a = '?wmode=opaque&autoplay=' + autoplay + '&api=postMessage';\n if (this.core.s.dailymotionPlayerParams) {\n a = a + '&' + $.param(this.core.s.dailymotionPlayerParams);\n }\n\n video = '';\n\n } else if (isVideo.html5) {\n var fL = html.substring(0, 1);\n if (fL === '.' || fL === '#') {\n html = $(html).html();\n }\n\n video = html;\n\n } else if (isVideo.vk) {\n\n a = '&autoplay=' + autoplay;\n if (this.core.s.vkPlayerParams) {\n a = a + '&' + $.param(this.core.s.vkPlayerParams);\n }\n\n video = '';\n\n }\n\n return video;\n };\n\n Video.prototype.loadVideoOnclick = function($el){\n\n var _this = this;\n // check slide has poster\n if ($el.find('.lg-object').hasClass('lg-has-poster') && $el.find('.lg-object').is(':visible')) {\n\n // check already video element present\n if (!$el.hasClass('lg-has-video')) {\n\n $el.addClass('lg-video-playing lg-has-video');\n\n var _src;\n var _html;\n var _loadVideo = function(_src, _html) {\n\n $el.find('.lg-video').append(_this.loadVideo(_src, '', false, _this.core.index, _html));\n\n if (_html) {\n if (_this.core.s.videojs) {\n try {\n videojs(_this.core.$slide.eq(_this.core.index).find('.lg-html5').get(0), _this.core.s.videojsOptions, function() {\n this.play();\n });\n } catch (e) {\n console.error('Make sure you have included videojs');\n }\n } else {\n _this.core.$slide.eq(_this.core.index).find('.lg-html5').get(0).play();\n }\n }\n\n };\n\n if (_this.core.s.dynamic) {\n\n _src = _this.core.s.dynamicEl[_this.core.index].src;\n _html = _this.core.s.dynamicEl[_this.core.index].html;\n\n _loadVideo(_src, _html);\n\n } else {\n\n _src = _this.core.$items.eq(_this.core.index).attr('href') || _this.core.$items.eq(_this.core.index).attr('data-src');\n _html = _this.core.$items.eq(_this.core.index).attr('data-html');\n\n _loadVideo(_src, _html);\n\n }\n\n var $tempImg = $el.find('.lg-object');\n $el.find('.lg-video').append($tempImg);\n\n // @todo loading icon for html5 videos also\n // for showing the loading indicator while loading video\n if (!$el.find('.lg-video-object').hasClass('lg-html5')) {\n $el.removeClass('lg-complete');\n $el.find('.lg-video-object').on('load.lg error.lg', function() {\n $el.addClass('lg-complete');\n });\n }\n\n } else {\n\n var youtubePlayer = $el.find('.lg-youtube').get(0);\n var vimeoPlayer = $el.find('.lg-vimeo').get(0);\n var dailymotionPlayer = $el.find('.lg-dailymotion').get(0);\n var html5Player = $el.find('.lg-html5').get(0);\n if (youtubePlayer) {\n youtubePlayer.contentWindow.postMessage('{\"event\":\"command\",\"func\":\"playVideo\",\"args\":\"\"}', '*');\n } else if (vimeoPlayer) {\n try {\n $f(vimeoPlayer).api('play');\n } catch (e) {\n console.error('Make sure you have included froogaloop2 js');\n }\n } else if (dailymotionPlayer) {\n dailymotionPlayer.contentWindow.postMessage('play', '*');\n\n } else if (html5Player) {\n if (_this.core.s.videojs) {\n try {\n videojs(html5Player).play();\n } catch (e) {\n console.error('Make sure you have included videojs');\n }\n } else {\n html5Player.play();\n }\n }\n\n $el.addClass('lg-video-playing');\n\n }\n }\n };\n\n Video.prototype.destroy = function() {\n this.videoLoaded = false;\n };\n\n function onHasVideo(event, index, src, html) {\n /*jshint validthis:true */\n var _this = this;\n _this.core.$slide.eq(index).find('.lg-video').append(_this.loadVideo(src, 'lg-object', true, index, html));\n if (html) {\n if (_this.core.s.videojs) {\n try {\n videojs(_this.core.$slide.eq(index).find('.lg-html5').get(0), _this.core.s.videojsOptions, function() {\n if (!_this.videoLoaded && _this.core.s.autoplayFirstVideo) {\n this.play();\n }\n });\n } catch (e) {\n console.error('Make sure you have included videojs');\n }\n } else {\n if(!_this.videoLoaded && _this.core.s.autoplayFirstVideo) {\n _this.core.$slide.eq(index).find('.lg-html5').get(0).play();\n }\n }\n }\n }\n\n function onAferAppendSlide(event, index) {\n /*jshint validthis:true */\n var $videoCont = this.core.$slide.eq(index).find('.lg-video-cont');\n if (!$videoCont.hasClass('lg-has-iframe')) {\n $videoCont.css('max-width', this.core.s.videoMaxWidth);\n this.videoLoaded = true;\n }\n }\n\n function onBeforeSlide(event, prevIndex, index) {\n /*jshint validthis:true */\n var _this = this;\n\n var $videoSlide = _this.core.$slide.eq(prevIndex);\n var youtubePlayer = $videoSlide.find('.lg-youtube').get(0);\n var vimeoPlayer = $videoSlide.find('.lg-vimeo').get(0);\n var dailymotionPlayer = $videoSlide.find('.lg-dailymotion').get(0);\n var vkPlayer = $videoSlide.find('.lg-vk').get(0);\n var html5Player = $videoSlide.find('.lg-html5').get(0);\n if (youtubePlayer) {\n youtubePlayer.contentWindow.postMessage('{\"event\":\"command\",\"func\":\"pauseVideo\",\"args\":\"\"}', '*');\n } else if (vimeoPlayer) {\n try {\n $f(vimeoPlayer).api('pause');\n } catch (e) {\n console.error('Make sure you have included froogaloop2 js');\n }\n } else if (dailymotionPlayer) {\n dailymotionPlayer.contentWindow.postMessage('pause', '*');\n\n } else if (html5Player) {\n if (_this.core.s.videojs) {\n try {\n videojs(html5Player).pause();\n } catch (e) {\n console.error('Make sure you have included videojs');\n }\n } else {\n html5Player.pause();\n }\n } if (vkPlayer) {\n $(vkPlayer).attr('src', $(vkPlayer).attr('src').replace('&autoplay', '&noplay'));\n }\n\n var _src;\n if (_this.core.s.dynamic) {\n _src = _this.core.s.dynamicEl[index].src;\n } else {\n _src = _this.core.$items.eq(index).attr('href') || _this.core.$items.eq(index).attr('data-src');\n\n }\n\n var _isVideo = _this.core.isVideo(_src, index) || {};\n if (_isVideo.youtube || _isVideo.vimeo || _isVideo.dailymotion || _isVideo.vk) {\n _this.core.$outer.addClass('lg-hide-download');\n }\n\n }\n\n $.fn.lightGallery.modules.video = Video;\n\n })();\n\n\n}));\n","/*! lightgallery - v1.8.3 - 2020-09-19\n* http://sachinchoolur.github.io/lightGallery/\n* Copyright (c) 2020 Sachin N; Licensed GPLv3 */\n(function (root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module unless amdModuleId is set\n define(['jquery'], function (a0) {\n return (factory(a0));\n });\n } else if (typeof module === 'object' && module.exports) {\n // Node. Does not work with strict CommonJS, but\n // only CommonJS-like environments that support module.exports,\n // like Node.\n module.exports = factory(require('jquery'));\n } else {\n factory(root[\"jQuery\"]);\n }\n}(this, function ($) {\n\n(function() {\n 'use strict';\n\n var defaults = {\n\n mode: 'lg-slide',\n\n // Ex : 'ease'\n cssEasing: 'ease',\n\n //'for jquery animation'\n easing: 'linear',\n speed: 600,\n height: '100%',\n width: '100%',\n addClass: '',\n startClass: 'lg-start-zoom',\n backdropDuration: 150,\n hideBarsDelay: 6000,\n\n useLeft: false,\n\n // aria-labelledby attribute fot gallery\n ariaLabelledby: '',\n \n //aria-describedby attribute for gallery\n ariaDescribedby: '',\n\n closable: true,\n loop: true,\n escKey: true,\n keyPress: true,\n controls: true,\n slideEndAnimatoin: true,\n hideControlOnEnd: false,\n mousewheel: true,\n\n getCaptionFromTitleOrAlt: true,\n\n // .lg-item || '.lg-sub-html'\n appendSubHtmlTo: '.lg-sub-html',\n\n subHtmlSelectorRelative: false,\n\n /**\n * @desc number of preload slides\n * will exicute only after the current slide is fully loaded.\n *\n * @ex you clicked on 4th image and if preload = 1 then 3rd slide and 5th\n * slide will be loaded in the background after the 4th slide is fully loaded..\n * if preload is 2 then 2nd 3rd 5th 6th slides will be preloaded.. ... ...\n *\n */\n preload: 1,\n showAfterLoad: true,\n selector: '',\n selectWithin: '',\n nextHtml: '',\n prevHtml: '',\n\n // 0, 1\n index: false,\n\n iframeMaxWidth: '100%',\n\n download: true,\n counter: true,\n appendCounterTo: '.lg-toolbar',\n\n swipeThreshold: 50,\n enableSwipe: true,\n enableDrag: true,\n\n dynamic: false,\n dynamicEl: [],\n galleryId: 1\n };\n\n function Plugin(element, options) {\n\n // Current lightGallery element\n this.el = element;\n\n // Current jquery element\n this.$el = $(element);\n\n // lightGallery settings\n this.s = $.extend({}, defaults, options);\n\n // When using dynamic mode, ensure dynamicEl is an array\n if (this.s.dynamic && this.s.dynamicEl !== 'undefined' && this.s.dynamicEl.constructor === Array && !this.s.dynamicEl.length) {\n throw ('When using dynamic mode, you must also define dynamicEl as an Array.');\n }\n\n // lightGallery modules\n this.modules = {};\n\n // false when lightgallery complete first slide;\n this.lGalleryOn = false;\n\n this.lgBusy = false;\n\n // Timeout function for hiding controls;\n this.hideBartimeout = false;\n\n // To determine browser supports for touch events;\n this.isTouch = ('ontouchstart' in document.documentElement);\n\n // Disable hideControlOnEnd if sildeEndAnimation is true\n if (this.s.slideEndAnimatoin) {\n this.s.hideControlOnEnd = false;\n }\n\n // Gallery items\n if (this.s.dynamic) {\n this.$items = this.s.dynamicEl;\n } else {\n if (this.s.selector === 'this') {\n this.$items = this.$el;\n } else if (this.s.selector !== '') {\n if (this.s.selectWithin) {\n this.$items = $(this.s.selectWithin).find(this.s.selector);\n } else {\n this.$items = this.$el.find($(this.s.selector));\n }\n } else {\n this.$items = this.$el.children();\n }\n }\n\n // .lg-item\n this.$slide = '';\n\n // .lg-outer\n this.$outer = '';\n\n this.init();\n\n return this;\n }\n\n Plugin.prototype.init = function() {\n\n var _this = this;\n\n // s.preload should not be more than $item.length\n if (_this.s.preload > _this.$items.length) {\n _this.s.preload = _this.$items.length;\n }\n\n // if dynamic option is enabled execute immediately\n var _hash = window.location.hash;\n if (_hash.indexOf('lg=' + this.s.galleryId) > 0) {\n\n _this.index = parseInt(_hash.split('&slide=')[1], 10);\n\n $('body').addClass('lg-from-hash');\n if (!$('body').hasClass('lg-on')) {\n setTimeout(function() {\n _this.build(_this.index);\n });\n\n $('body').addClass('lg-on');\n }\n }\n\n if (_this.s.dynamic) {\n\n _this.$el.trigger('onBeforeOpen.lg');\n\n _this.index = _this.s.index || 0;\n\n // prevent accidental double execution\n if (!$('body').hasClass('lg-on')) {\n setTimeout(function() {\n _this.build(_this.index);\n $('body').addClass('lg-on');\n });\n }\n } else {\n\n // Using different namespace for click because click event should not unbind if selector is same object('this')\n _this.$items.on('click.lgcustom', function(event) {\n\n // For IE8\n try {\n event.preventDefault();\n event.preventDefault();\n } catch (er) {\n event.returnValue = false;\n }\n\n _this.$el.trigger('onBeforeOpen.lg');\n\n _this.index = _this.s.index || _this.$items.index(this);\n\n // prevent accidental double execution\n if (!$('body').hasClass('lg-on')) {\n _this.build(_this.index);\n $('body').addClass('lg-on');\n }\n });\n }\n\n };\n\n Plugin.prototype.build = function(index) {\n\n var _this = this;\n\n _this.structure();\n\n // module constructor\n $.each($.fn.lightGallery.modules, function(key) {\n _this.modules[key] = new $.fn.lightGallery.modules[key](_this.el);\n });\n\n // initiate slide function\n _this.slide(index, false, false, false);\n\n if (_this.s.keyPress) {\n _this.keyPress();\n }\n\n if (_this.$items.length > 1) {\n\n _this.arrow();\n\n setTimeout(function() {\n _this.enableDrag();\n _this.enableSwipe();\n }, 50);\n\n if (_this.s.mousewheel) {\n _this.mousewheel();\n }\n } else {\n _this.$slide.on('click.lg', function() {\n _this.$el.trigger('onSlideClick.lg');\n });\n }\n\n _this.counter();\n\n _this.closeGallery();\n\n _this.$el.trigger('onAfterOpen.lg');\n\n // Hide controllers if mouse doesn't move for some period\n _this.$outer.on('mousemove.lg click.lg touchstart.lg', function() {\n\n _this.$outer.removeClass('lg-hide-items');\n\n clearTimeout(_this.hideBartimeout);\n\n // Timeout will be cleared on each slide movement also\n _this.hideBartimeout = setTimeout(function() {\n _this.$outer.addClass('lg-hide-items');\n }, _this.s.hideBarsDelay);\n\n });\n\n _this.$outer.trigger('mousemove.lg');\n\n };\n\n Plugin.prototype.structure = function() {\n var list = '';\n var controls = '';\n var i = 0;\n var subHtmlCont = '';\n var template;\n var _this = this;\n\n $('body').append('
');\n $('.lg-backdrop').css('transition-duration', this.s.backdropDuration + 'ms');\n\n // Create gallery items\n for (i = 0; i < this.$items.length; i++) {\n list += '';\n }\n\n // Create controlls\n if (this.s.controls && this.$items.length > 1) {\n controls = '