/*! lg-pager - v1.0.2 - 2017-01-22 * http://sachinchoolur.github.io/lightgallery * copyright (c) 2017 sachin n; licensed gplv3 */ !function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jquery)}(this,function(a){!function(){"use strict";var b={pager:!1},c=function(c){return this.core=a(c).data("lightgallery"),this.$el=a(c),this.core.s=a.extend({},b,this.core.s),this.core.s.pager&&this.core.$items.length>1&&this.init(),this};c.prototype.init=function(){var b,c,d,e=this,f="";if(e.core.$outer.find(".lg").append('
'),e.core.s.dynamic)for(var g=0;g
';else e.core.$items.each(function(){f+=e.core.s.exthumbimage?'
':'
'});c=e.core.$outer.find(".lg-pager-outer"),c.html(f),b=e.core.$outer.find(".lg-pager-cont"),b.on("click.lg touchend.lg",function(){var b=a(this);e.core.index=b.index(),e.core.slide(e.core.index,!1,!0,!1)}),c.on("mouseover.lg",function(){cleartimeout(d),c.addclass("lg-pager-hover")}),c.on("mouseout.lg",function(){d=settimeout(function(){c.removeclass("lg-pager-hover")})}),e.core.$el.on("onbeforeslide.lg.tm",function(a,c,d){b.removeclass("lg-pager-active"),b.eq(d).addclass("lg-pager-active")})},c.prototype.destroy=function(){},a.fn.lightgallery.modules.pager=c}()});