Sha256: 51a3df830bb92f78e47f247d153791c6d73df76af43b24b33fa6f386118d7d55

Contents?: true

Size: 1.41 KB

Versions: 199

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

199 entries across 191 versions & 1 rubygems

Version Path
j1-template-2023.9.2 assets/themes/j1/modules/lightGallery/js/modules/lg-hash.min.js
j1-template-2023.9.1 assets/themes/j1/modules/lightGallery/js/modules/lg-hash.min.js
j1-template-2023.9.0 assets/themes/j1/modules/lightGallery/js/modules/lg-hash.min.js
j1-template-2023.8.2 assets/themes/j1/modules/lightGallery/js/modules/lg-hash.min.js
j1-template-2023.8.1 assets/themes/j1/modules/lightGallery/js/modules/lg-hash.min.js
j1-template-2023.8.0 assets/themes/j1/modules/lightGallery/js/modules/lg-hash.min.js
j1-template-2023.7.0 assets/themes/j1/modules/lightGallery/js/modules/lg-hash.min.js
j1-template-2023.6.0 assets/themes/j1/modules/lightGallery/js/modules/lg-hash.min.js
j1-template-2023.5.2 assets/themes/j1/modules/lightGallery/js/modules/lg-hash.min.js
j1-template-2023.4.5 assets/themes/j1/modules/lightGallery/js/modules/lg-hash.min.js
j1-template-2023.4.4 assets/themes/j1/modules/lightGallery/js/modules/lg-hash.min.js
j1-template-2023.4.3 assets/themes/j1/modules/lightGallery/js/modules/lg-hash.min.js
j1-template-2023.4.2 assets/themes/j1/modules/lightGallery/js/modules/lg-hash.min.js
j1-template-2023.4.1 assets/themes/j1/modules/lightGallery/js/modules/lg-hash.min.js
j1-template-2023.4.0 assets/themes/j1/modules/lightGallery/js/modules/lg-hash.min.js
j1-template-2023.3.3 assets/themes/j1/modules/lightGallery/js/modules/lg-hash.min.js
j1-template-2023.3.2 assets/themes/j1/modules/lightGallery/js/modules/lg-hash.min.js
j1-template-2023.3.1 assets/themes/j1/modules/lightGallery/js/modules/lg-hash.min.js
j1-template-2023.3.0 assets/themes/j1/modules/lightGallery/js/modules/lg-hash.min.js
j1-template-2023.2.7 assets/themes/j1/modules/lightGallery/js/modules/lg-hash.min.js