Lines Matching full:hash
1 /*! lg-hash - v1.0.0 - 2016-09-20
26 hash: true property
29 var Hash = function(element) { class
35 if (this.core.s.hash) {
36 this.oldHash = window.location.hash;
43 Hash.prototype.init = function() { class
47 // Change hash value on after each slide transition
49 window.location.hash = 'lg=' + _this.core.s.galleryId + '&slide=' + index;
52 // Listen hash change and change the slide according to slide value
53 $(window).on('hashchange.lg.hash', function() {
54 _hash = window.location.hash;
67 Hash.prototype.destroy = function() {
69 if (!this.core.s.hash) {
73 // Reset to old hash value
75 window.location.hash = this.oldHash;
80 window.location.hash = '';
84 this.core.$el.off('.lg.hash');
88 $.fn.lightGallery.modules.hash = Hash;