Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "lg-hash", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "History(Hash) module for lightgallery.", | ||
@@ -5,0 +5,0 @@ "main": [ |
@@ -1,2 +0,2 @@ | ||
/*! lg-hash - v1.0.0 - 2016-09-20 | ||
/*! lg-hash - v1.0.1 - 2016-09-30 | ||
* http://sachinchoolur.github.io/lightGallery | ||
@@ -8,4 +8,4 @@ * Copyright (c) 2016 Sachin N; Licensed GPLv3 */ | ||
// AMD. Register as an anonymous module unless amdModuleId is set | ||
define([], function () { | ||
return (factory()); | ||
define(['jquery'], function (a0) { | ||
return (factory(a0)); | ||
}); | ||
@@ -16,9 +16,9 @@ } else if (typeof exports === 'object') { | ||
// like Node. | ||
module.exports = factory(); | ||
module.exports = factory(require('jquery')); | ||
} else { | ||
factory(); | ||
factory(jQuery); | ||
} | ||
}(this, function () { | ||
}(this, function ($) { | ||
(function($, window, document, undefined) { | ||
(function() { | ||
@@ -92,5 +92,5 @@ 'use strict'; | ||
})(jQuery, window, document); | ||
})(); | ||
})); |
@@ -1,4 +0,4 @@ | ||
/*! lg-hash - v1.0.0 - 2016-09-20 | ||
/*! lg-hash - v1.0.1 - 2016-09-30 | ||
* http://sachinchoolur.github.io/lightGallery | ||
* Copyright (c) 2016 Sachin N; Licensed GPLv3 */ | ||
!function(a,b){"function"==typeof define&&define.amd?define([],function(){return b()}):"object"==typeof exports?module.exports=b():b()}(this,function(){!function(a,b,c,d){"use strict";var e={hash:!0},f=function(c){return this.core=a(c).data("lightGallery"),this.core.s=a.extend({},e,this.core.s),this.core.s.hash&&(this.oldHash=b.location.hash,this.init()),this};f.prototype.init=function(){var c,d=this;d.core.$el.on("onAfterSlide.lg.tm",function(a,c,e){b.location.hash="lg="+d.core.s.galleryId+"&slide="+e}),a(b).on("hashchange.lg.hash",function(){c=b.location.hash;var a=parseInt(c.split("&slide=")[1],10);c.indexOf("lg="+d.core.s.galleryId)>-1?d.core.slide(a,!1,!1):d.core.lGalleryOn&&d.core.destroy()})},f.prototype.destroy=function(){this.core.s.hash&&(this.oldHash&&this.oldHash.indexOf("lg="+this.core.s.galleryId)<0?b.location.hash=this.oldHash:history.pushState?history.pushState("",c.title,b.location.pathname+b.location.search):b.location.hash="",this.core.$el.off(".lg.hash"))},a.fn.lightGallery.modules.hash=f}(jQuery,window,document)}); | ||
!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){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?window.location.hash=this.oldHash:history.pushState?history.pushState("",document.title,window.location.pathname+window.location.search):window.location.hash="",this.core.$el.off(".lg.hash"))},a.fn.lightGallery.modules.hash=c}()}); |
@@ -31,3 +31,30 @@ 'use strict'; | ||
src: 'src/<%= pkg.name %>.js', | ||
dest: 'dist/<%= pkg.name %>.js' | ||
dest: 'dist/<%= pkg.name %>.js', | ||
deps: { | ||
args : ['$'], | ||
'default': ['$'], | ||
amd: { | ||
indent: 6, | ||
items: ['jquery'], | ||
prefix: '\'', | ||
separator: ',\n', | ||
suffix: '\'' | ||
}, | ||
cjs: { | ||
indent: 6, | ||
items: ['jquery'], | ||
prefix: 'require(\'', | ||
separator: ',\n', | ||
suffix: '\')' | ||
}, | ||
global: { | ||
items: ['jQuery'], | ||
}, | ||
pipeline: { | ||
indent: 0, | ||
items : ['jquery'], | ||
prefix: '//= require ', | ||
separator: '\n', | ||
} | ||
} | ||
} | ||
@@ -34,0 +61,0 @@ } |
{ | ||
"name": "lg-hash", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "History(Hash) module for lightgallery.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -65,7 +65,7 @@ ![travis](https://travis-ci.org/sachinchoolur/lg-hash.svg?branch=master) | ||
<!-- License | ||
License | ||
--- | ||
#### Commercial license | ||
If you want to use lightGallery to develop commercial sites, themes, projects, and applications, the Commercial license is the appropriate license. With this option, your source code is kept proprietary. Purchase a lightGallery Commercial License at uplabs.com/posts/lightgallery | ||
If you want to use lightGallery to develop commercial sites, themes, projects, and applications, the Commercial license is the appropriate license. With this option, your source code is kept proprietary. Purchase a lightGallery Commercial License at [uplabs.com/posts/lightgallery-plugin](https://www.uplabs.com/posts/lightgallery-plugin) | ||
@@ -76,3 +76,3 @@ #### Open source license | ||
Follow me on twitter [@sachinchoolur](https://twitter.com/sachinchoolur) for the latest news, updates about this project. --> | ||
Follow me on twitter [@sachinchoolur](https://twitter.com/sachinchoolur) for the latest news, updates about this project. | ||
@@ -1,2 +0,2 @@ | ||
(function($, window, document, undefined) { | ||
(function() { | ||
@@ -70,2 +70,2 @@ 'use strict'; | ||
})(jQuery, window, document); | ||
})(); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
61415
690
1