Sha256: adba4ccbd6b4e650447a99b3a2d66692b0f489f8e6b0f5cdb3a50bd82e2e9028

Contents?: true

Size: 1.41 KB

Versions: 35

Compression:

Stored size: 1.41 KB

Contents

/*! lg-hash - v1.0.4 - 2017-12-20
* 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={hash:!0},c=function(c){return this.core=a(c).data("lightGallery"),this.core.s=a.extend({},b,this.core.s),this.core.s.hash&&(this.oldHash=window.location.hash,this.init()),this};c.prototype.init=function(){var b,c=this;c.core.$el.on("onAfterSlide.lg.tm",function(a,b,d){history.replaceState?history.replaceState(null,null,window.location.pathname+window.location.search+"#lg="+c.core.s.galleryId+"&slide="+d):window.location.hash="lg="+c.core.s.galleryId+"&slide="+d}),a(window).on("hashchange.lg.hash",function(){b=window.location.hash;var a=parseInt(b.split("&slide=")[1],10);b.indexOf("lg="+c.core.s.galleryId)>-1?c.core.slide(a,!1,!1):c.core.lGalleryOn&&c.core.destroy()})},c.prototype.destroy=function(){this.core.s.hash&&(this.oldHash&&this.oldHash.indexOf("lg="+this.core.s.galleryId)<0?history.replaceState?history.replaceState(null,null,this.oldHash):window.location.hash=this.oldHash:history.replaceState?history.replaceState(null,document.title,window.location.pathname+window.location.search):window.location.hash="",this.core.$el.off(".lg.hash"))},a.fn.lightGallery.modules.hash=c}()});

Version data entries

35 entries across 35 versions & 2 rubygems

Version Path
j1_template-2019.4.12 lib/starter_web/assets/themes/j1/extensions/light_gallery/js/lg-hash.min.js
j1_template-2019.4.11 lib/starter_web/assets/themes/j1/extensions/light_gallery/js/lg-hash.min.js
j1_template-2019.4.10 lib/starter_web/assets/themes/j1/extensions/light_gallery/js/lg-hash.min.js
j1_template-2019.4.8 lib/starter_web/assets/themes/j1/extensions/light_gallery/js/lg-hash.min.js
j1_template-2019.4.7 lib/starter_web/assets/themes/j1/extensions/light_gallery/js/lg-hash.min.js
j1_template-2019.4.5 lib/starter_web/assets/themes/j1/extensions/light_gallery/js/lg-hash.min.js
j1_template-2019.4.4 lib/starter_web/assets/themes/j1/extensions/light_gallery/js/lg-hash.min.js
j1_template-2019.4.1 lib/starter_web/assets/themes/j1/extensions/light_gallery/js/lg-hash.min.js
j1_template_mde-2018.4.36 lib/starter_web/assets/themes/j1/extensions/light_gallery/js/lg-hash.min.js
j1_template_mde-2018.4.35 lib/starter_web/assets/themes/j1/extensions/light_gallery/js/lg-hash.min.js
j1_template_mde-2018.4.34 lib/starter_web/assets/themes/j1/extensions/light_gallery/js/lg-hash.min.js
j1_template_mde-2018.4.33 lib/starter_web/assets/themes/j1/extensions/light_gallery/js/lg-hash.min.js
j1_template_mde-2018.4.32 lib/starter_web/assets/themes/j1/extensions/light_gallery/js/lg-hash.min.js
j1_template_mde-2018.4.31 lib/starter_web/assets/themes/j1/extensions/light_gallery/js/lg-hash.min.js
j1_template_mde-2018.4.30 lib/starter_web/assets/themes/j1/extensions/light_gallery/js/lg-hash.min.js
j1_template_mde-2018.4.29 lib/starter_web/assets/themes/j1/extensions/light_gallery/js/lg-hash.min.js
j1_template_mde-2018.4.28 lib/starter_web/assets/themes/j1/extensions/light_gallery/js/lg-hash.min.js
j1_template_mde-2018.4.27 lib/starter_web/assets/themes/j1/extensions/light_gallery/js/lg-hash.min.js
j1_template_mde-2018.4.26 lib/starter_web/assets/themes/j1/extensions/light_gallery/js/lg-hash.min.js
j1_template_mde-2018.4.25 lib/starter_web/assets/themes/j1/extensions/light_gallery/js/lg-hash.min.js