Sha256: b38a96d2814e1cb52ce7d61ee4da568ce35d8c6e451ef562b2f881c1d175bdc8

Contents?: true

Size: 1.87 KB

Versions: 184

Compression:

Stored size: 1.87 KB

Contents

/*! 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('<div class="lg-pager-outer"></div>'),e.core.s.dynamic)for(var g=0;g<e.core.s.dynamicEl.length;g++)f+='<span class="lg-pager-cont"> <span class="lg-pager"></span><div class="lg-pager-thumb-cont"><span class="lg-caret"></span> <img src="'+e.core.s.dynamicEl[g].thumb+'" /></div></span>';else e.core.$items.each(function(){f+=e.core.s.exThumbImage?'<span class="lg-pager-cont"> <span class="lg-pager"></span><div class="lg-pager-thumb-cont"><span class="lg-caret"></span> <img src="'+a(this).attr(e.core.s.exThumbImage)+'" /></div></span>':'<span class="lg-pager-cont"> <span class="lg-pager"></span><div class="lg-pager-thumb-cont"><span class="lg-caret"></span> <img src="'+a(this).find("img").attr("src")+'" /></div></span>'});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}()});

Version data entries

184 entries across 176 versions & 1 rubygems

Version Path
j1-template-2021.2.4 assets/themes/j1/modules/lightGallery/js/modules/lg-pager.min.js
j1-template-2021.2.3 assets/themes/j1/modules/lightGallery/js/modules/lg-pager.min.js
j1-template-2021.2.2 assets/themes/j1/modules/lightGallery/js/modules/lg-pager.min.js
j1-template-2021.2.1 assets/themes/j1/modules/lightGallery/js/modules/lg-pager.min.js
j1-template-2021.2.0 assets/themes/j1/modules/lightGallery/js/modules/lg-pager.min.js
j1-template-2021.1.29 assets/themes/j1/modules/lightGallery/js/modules/lg-pager.min.js
j1-template-2021.1.28 assets/themes/j1/modules/lightGallery/js/modules/lg-pager.min.js
j1-template-2021.1.27 assets/themes/j1/modules/lightGallery/js/modules/lg-pager.min.js
j1-template-2021.1.26 assets/themes/j1/modules/lightGallery/js/modules/lg-pager.min.js
j1-template-2021.1.25 assets/themes/j1/modules/lightGallery/js/modules/lg-pager.min.js
j1-template-2021.1.24 assets/themes/j1/modules/lightGallery/js/modules/lg-pager.min.js
j1-template-2021.1.23 assets/themes/j1/modules/lightGallery/js/modules/lg-pager.min.js
j1-template-2021.1.22 assets/themes/j1/modules/lightGallery/js/modules/lg-pager.min.js
j1-template-2021.1.21 assets/themes/j1/modules/lightGallery/js/modules/lg-pager.min.js
j1-template-2021.1.20 assets/themes/j1/modules/lightGallery/js/modules/lg-pager.min.js
j1-template-2021.1.19 assets/themes/j1/modules/lightGallery/js/modules/lg-pager.min.js
j1-template-2021.1.18 assets/themes/j1/modules/lightGallery/js/modules/lg-pager.min.js
j1-template-2021.1.17 assets/themes/j1/modules/lightGallery/js/modules/lg-pager.min.js
j1-template-2021.1.16 assets/themes/j1/modules/lightGallery/js/modules/lg-pager.min.js
j1-template-2021.1.14 assets/themes/j1/modules/lightGallery/js/modules/lg-pager.min.js