lightgallery-rails 1.6.0 → 1.6.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 46b2bc2e749f6c551d9e030e893dccee215375d8
4
- data.tar.gz: 5284c1cc760781a13902049299a3f9b196c2bb01
3
+ metadata.gz: 4f867cedb5a974987e2910a21f1ee0c9043a5b8f
4
+ data.tar.gz: edc8dfb94cefe78bc5b4d4184e22a0524b7a2865
5
5
  SHA512:
6
- metadata.gz: 61d4a73c690f9ae5cd5a1635b86c5e783faf50efeac8161c3a1fa5d5c2d52b10f589855a479d3a074571d9b12a6a5807af13a791341901f89bc52946d6c201c9
7
- data.tar.gz: 26794ef2f75b25a5bed59a8778619331d92023e7b61600513ef79b72c41cb9efb680f64dbef741bf65e1c563a5d3fae6d7bdac7aee7c409ed7c661437983ba01
6
+ metadata.gz: 4b2163400ae9a96e0682f7d772777a4273c63c8be287b2af2e8082ccffd38ad0b30dd8bcd6d300c241d6e55a5b7a2ab8126156c3380631bd1922cab66a847d43
7
+ data.tar.gz: 76f0045da95e694212a54569e2d9d6157b9ee09c65c1f5cb444c40f673ce9bf1a3e4f8d63c50d7d412faf910ae20ded6f2040e952fc159bd0a1c5ab2c66c3990
@@ -1,5 +1,5 @@
1
1
  module Lightgallery
2
2
  module Rails
3
- VERSION = "1.6.0".freeze
3
+ VERSION = "1.6.7".freeze
4
4
  end
5
5
  end
@@ -1,4 +1,4 @@
1
- /*! lg-hash - v1.0.2 - 2017-06-03
1
+ /*! lg-hash - v1.0.4 - 2017-12-20
2
2
  * http://sachinchoolur.github.io/lightGallery
3
3
  * Copyright (c) 2017 Sachin N; Licensed GPLv3 */
4
4
 
@@ -47,7 +47,7 @@
47
47
  // Change hash value on after each slide transition
48
48
  _this.core.$el.on('onAfterSlide.lg.tm', function(event, prevIndex, index) {
49
49
  if (history.replaceState) {
50
- history.replaceState(null, null, '#lg=' + _this.core.s.galleryId + '&slide=' + index);
50
+ history.replaceState(null, null, window.location.pathname + window.location.search + '#lg=' + _this.core.s.galleryId + '&slide=' + index);
51
51
  } else {
52
52
  window.location.hash = 'lg=' + _this.core.s.galleryId + '&slide=' + index;
53
53
  }
@@ -97,4 +97,5 @@
97
97
 
98
98
  })();
99
99
 
100
+
100
101
  }));
@@ -1,4 +1,4 @@
1
- /*! lg-hash - v1.0.2 - 2017-06-03
1
+ /*! lg-hash - v1.0.4 - 2017-12-20
2
2
  * http://sachinchoolur.github.io/lightGallery
3
3
  * Copyright (c) 2017 Sachin N; Licensed GPLv3 */
4
- !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,"#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}()});
4
+ !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}()});
@@ -1,6 +1,6 @@
1
- /*! lg-share - v1.0.2 - 2016-11-26
1
+ /*! lg-share - v1.1.0 - 2017-10-03
2
2
  * http://sachinchoolur.github.io/lightGallery
3
- * Copyright (c) 2016 Sachin N; Licensed GPLv3 */
3
+ * Copyright (c) 2017 Sachin N; Licensed GPLv3 */
4
4
 
5
5
  (function (root, factory) {
6
6
  if (typeof define === 'function' && define.amd) {
@@ -68,19 +68,32 @@
68
68
 
69
69
  _this.core.$el.on('onAfterSlide.lg.tm', function(event, prevIndex, index) {
70
70
 
71
- setTimeout(function() {
72
- $('#lg-share-facebook').attr('href', 'https://www.facebook.com/sharer/sharer.php?u=' + (encodeURIComponent(_this.core.$items.eq(index).attr('data-facebook-share-url') || window.location.href)));
71
+ setTimeout(function() {
73
72
 
74
- $('#lg-share-twitter').attr('href', 'https://twitter.com/intent/tweet?text=' + _this.core.$items.eq(index).attr('data-tweet-text') + '&url=' + (encodeURIComponent(_this.core.$items.eq(index).attr('data-twitter-share-url') || window.location.href)));
73
+ $('#lg-share-facebook').attr('href', 'https://www.facebook.com/sharer/sharer.php?u=' + (encodeURIComponent(_this.getSahreProps(index, 'facebookShareUrl') || window.location.href)));
75
74
 
76
- $('#lg-share-googleplus').attr('href', 'https://plus.google.com/share?url=' + (encodeURIComponent(_this.core.$items.eq(index).attr('data-googleplus-share-url') || window.location.href)));
75
+ $('#lg-share-twitter').attr('href', 'https://twitter.com/intent/tweet?text=' + _this.getSahreProps(index, 'tweetText') + '&url=' + (encodeURIComponent(_this.getSahreProps(index, 'twitterShareUrl') || window.location.href)));
77
76
 
78
- $('#lg-share-pinterest').attr('href', 'http://www.pinterest.com/pin/create/button/?url=' + (encodeURIComponent(_this.core.$items.eq(index).attr('data-pinterest-share-url') || window.location.href)) + '&media=' + encodeURIComponent(_this.core.$items.eq(index).attr('href') || _this.core.$items.eq(index).attr('data-src')) + '&description=' + _this.core.$items.eq(index).attr('data-pinterest-text'));
77
+ $('#lg-share-googleplus').attr('href', 'https://plus.google.com/share?url=' + (encodeURIComponent(_this.getSahreProps(index, 'googleplusShareUrl') || window.location.href)));
78
+
79
+ $('#lg-share-pinterest').attr('href', 'http://www.pinterest.com/pin/create/button/?url=' + (encodeURIComponent(_this.getSahreProps(index, 'pinterestShareUrl') || window.location.href)) + '&media=' + encodeURIComponent(_this.getSahreProps(index, 'src')) + '&description=' + _this.getSahreProps(index, 'pinterestText'));
79
80
 
80
81
  }, 100);
81
82
  });
82
83
  };
83
84
 
85
+ Share.prototype.getSahreProps = function(index, prop){
86
+ var shareProp = '';
87
+ if(this.core.s.dynamic) {
88
+ shareProp = this.core.s.dynamicEl[index][prop];
89
+ } else {
90
+ var _href = this.core.$items.eq(index).attr('href');
91
+ var _prop = this.core.$items.eq(index).data(prop);
92
+ shareProp = prop === 'src' ? _href || _prop : _prop;
93
+ }
94
+ return shareProp;
95
+ };
96
+
84
97
  Share.prototype.destroy = function() {
85
98
 
86
99
  };
@@ -1,4 +1,4 @@
1
- /*! lg-share - v1.0.2 - 2016-11-26
1
+ /*! lg-share - v1.1.0 - 2017-10-03
2
2
  * http://sachinchoolur.github.io/lightGallery
3
- * Copyright (c) 2016 Sachin N; Licensed GPLv3 */
4
- !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={share:!0,facebook:!0,facebookDropdownText:"Facebook",twitter:!0,twitterDropdownText:"Twitter",googlePlus:!0,googlePlusDropdownText:"GooglePlus",pinterest:!0,pinterestDropdownText:"Pinterest"},c=function(c){return this.core=a(c).data("lightGallery"),this.core.s=a.extend({},b,this.core.s),this.core.s.share&&this.init(),this};c.prototype.init=function(){var b=this,c='<span id="lg-share" class="lg-icon"><ul class="lg-dropdown" style="position: absolute;">';c+=b.core.s.facebook?'<li><a id="lg-share-facebook" target="_blank"><span class="lg-icon"></span><span class="lg-dropdown-text">'+this.core.s.facebookDropdownText+"</span></a></li>":"",c+=b.core.s.twitter?'<li><a id="lg-share-twitter" target="_blank"><span class="lg-icon"></span><span class="lg-dropdown-text">'+this.core.s.twitterDropdownText+"</span></a></li>":"",c+=b.core.s.googlePlus?'<li><a id="lg-share-googleplus" target="_blank"><span class="lg-icon"></span><span class="lg-dropdown-text">'+this.core.s.googlePlusDropdownText+"</span></a></li>":"",c+=b.core.s.pinterest?'<li><a id="lg-share-pinterest" target="_blank"><span class="lg-icon"></span><span class="lg-dropdown-text">'+this.core.s.pinterestDropdownText+"</span></a></li>":"",c+="</ul></span>",this.core.$outer.find(".lg-toolbar").append(c),this.core.$outer.find(".lg").append('<div id="lg-dropdown-overlay"></div>'),a("#lg-share").on("click.lg",function(){b.core.$outer.toggleClass("lg-dropdown-active")}),a("#lg-dropdown-overlay").on("click.lg",function(){b.core.$outer.removeClass("lg-dropdown-active")}),b.core.$el.on("onAfterSlide.lg.tm",function(c,d,e){setTimeout(function(){a("#lg-share-facebook").attr("href","https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(b.core.$items.eq(e).attr("data-facebook-share-url")||window.location.href)),a("#lg-share-twitter").attr("href","https://twitter.com/intent/tweet?text="+b.core.$items.eq(e).attr("data-tweet-text")+"&url="+encodeURIComponent(b.core.$items.eq(e).attr("data-twitter-share-url")||window.location.href)),a("#lg-share-googleplus").attr("href","https://plus.google.com/share?url="+encodeURIComponent(b.core.$items.eq(e).attr("data-googleplus-share-url")||window.location.href)),a("#lg-share-pinterest").attr("href","http://www.pinterest.com/pin/create/button/?url="+encodeURIComponent(b.core.$items.eq(e).attr("data-pinterest-share-url")||window.location.href)+"&media="+encodeURIComponent(b.core.$items.eq(e).attr("href")||b.core.$items.eq(e).attr("data-src"))+"&description="+b.core.$items.eq(e).attr("data-pinterest-text"))},100)})},c.prototype.destroy=function(){},a.fn.lightGallery.modules.share=c}()});
3
+ * Copyright (c) 2017 Sachin N; Licensed GPLv3 */
4
+ !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={share:!0,facebook:!0,facebookDropdownText:"Facebook",twitter:!0,twitterDropdownText:"Twitter",googlePlus:!0,googlePlusDropdownText:"GooglePlus",pinterest:!0,pinterestDropdownText:"Pinterest"},c=function(c){return this.core=a(c).data("lightGallery"),this.core.s=a.extend({},b,this.core.s),this.core.s.share&&this.init(),this};c.prototype.init=function(){var b=this,c='<span id="lg-share" class="lg-icon"><ul class="lg-dropdown" style="position: absolute;">';c+=b.core.s.facebook?'<li><a id="lg-share-facebook" target="_blank"><span class="lg-icon"></span><span class="lg-dropdown-text">'+this.core.s.facebookDropdownText+"</span></a></li>":"",c+=b.core.s.twitter?'<li><a id="lg-share-twitter" target="_blank"><span class="lg-icon"></span><span class="lg-dropdown-text">'+this.core.s.twitterDropdownText+"</span></a></li>":"",c+=b.core.s.googlePlus?'<li><a id="lg-share-googleplus" target="_blank"><span class="lg-icon"></span><span class="lg-dropdown-text">'+this.core.s.googlePlusDropdownText+"</span></a></li>":"",c+=b.core.s.pinterest?'<li><a id="lg-share-pinterest" target="_blank"><span class="lg-icon"></span><span class="lg-dropdown-text">'+this.core.s.pinterestDropdownText+"</span></a></li>":"",c+="</ul></span>",this.core.$outer.find(".lg-toolbar").append(c),this.core.$outer.find(".lg").append('<div id="lg-dropdown-overlay"></div>'),a("#lg-share").on("click.lg",function(){b.core.$outer.toggleClass("lg-dropdown-active")}),a("#lg-dropdown-overlay").on("click.lg",function(){b.core.$outer.removeClass("lg-dropdown-active")}),b.core.$el.on("onAfterSlide.lg.tm",function(c,d,e){setTimeout(function(){a("#lg-share-facebook").attr("href","https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(b.getSahreProps(e,"facebookShareUrl")||window.location.href)),a("#lg-share-twitter").attr("href","https://twitter.com/intent/tweet?text="+b.getSahreProps(e,"tweetText")+"&url="+encodeURIComponent(b.getSahreProps(e,"twitterShareUrl")||window.location.href)),a("#lg-share-googleplus").attr("href","https://plus.google.com/share?url="+encodeURIComponent(b.getSahreProps(e,"googleplusShareUrl")||window.location.href)),a("#lg-share-pinterest").attr("href","http://www.pinterest.com/pin/create/button/?url="+encodeURIComponent(b.getSahreProps(e,"pinterestShareUrl")||window.location.href)+"&media="+encodeURIComponent(b.getSahreProps(e,"src"))+"&description="+b.getSahreProps(e,"pinterestText"))},100)})},c.prototype.getSahreProps=function(a,b){var c="";if(this.core.s.dynamic)c=this.core.s.dynamicEl[a][b];else{var d=this.core.$items.eq(a).attr("href"),e=this.core.$items.eq(a).data(b);c="src"===b?d||e:e}return c},c.prototype.destroy=function(){},a.fn.lightGallery.modules.share=c}()});
@@ -1,4 +1,4 @@
1
- /*! lg-video - v1.1.0 - 2017-08-08
1
+ /*! lg-video - v1.2.0 - 2017-11-16
2
2
  * http://sachinchoolur.github.io/lightGallery
3
3
  * Copyright (c) 2017 Sachin N; Licensed GPLv3 */
4
4
 
@@ -19,67 +19,132 @@
19
19
  }(this, function ($) {
20
20
 
21
21
  (function() {
22
+
23
+ 'use strict';
24
+
25
+ var defaults = {
26
+ videoMaxWidth: '855px',
22
27
 
23
- 'use strict';
28
+ autoplayFirstVideo: true,
24
29
 
25
- var defaults = {
26
- videoMaxWidth: '855px',
27
- youtubePlayerParams: false,
28
- vimeoPlayerParams: false,
29
- dailymotionPlayerParams: false,
30
- vkPlayerParams: false,
31
- videojs: false,
32
- videojsOptions: {}
33
- };
30
+ youtubePlayerParams: false,
31
+ vimeoPlayerParams: false,
32
+ dailymotionPlayerParams: false,
33
+ vkPlayerParams: false,
34
34
 
35
- var Video = function(element) {
36
-
37
- this.core = $(element).data('lightGallery');
38
-
39
- this.$el = $(element);
40
- this.core.s = $.extend({}, defaults, this.core.s);
41
- this.videoLoaded = false;
42
-
43
- this.init();
44
-
45
- return this;
46
- };
47
-
48
- Video.prototype.init = function() {
49
- var _this = this;
50
-
51
- // Event triggered when video url found without poster
52
- _this.core.$el.on('hasVideo.lg.tm', function(event, index, src, html) {
53
- _this.core.$slide.eq(index).find('.lg-video').append(_this.loadVideo(src, 'lg-object', true, index, html));
54
- if (html) {
55
- if (_this.core.s.videojs) {
56
- try {
57
- videojs(_this.core.$slide.eq(index).find('.lg-html5').get(0), _this.core.s.videojsOptions, function() {
58
- if (!_this.videoLoaded) {
59
- this.play();
60
- }
61
- });
62
- } catch (e) {
63
- console.error('Make sure you have included videojs');
64
- }
35
+ videojs: false,
36
+ videojsOptions: {}
37
+ };
38
+
39
+ var Video = function(element) {
40
+
41
+ this.core = $(element).data('lightGallery');
42
+
43
+ this.$el = $(element);
44
+ this.core.s = $.extend({}, defaults, this.core.s);
45
+ this.videoLoaded = false;
46
+
47
+ this.init();
48
+
49
+ return this;
50
+ };
51
+
52
+ Video.prototype.init = function() {
53
+ var _this = this;
54
+
55
+ // Event triggered when video url found without poster
56
+ _this.core.$el.on('hasVideo.lg.tm', onHasVideo.bind(this));
57
+
58
+ // Set max width for video
59
+ _this.core.$el.on('onAferAppendSlide.lg.tm', onAferAppendSlide.bind(this));
60
+
61
+ if (_this.core.doCss() && (_this.core.$items.length > 1) && (_this.core.s.enableSwipe || _this.core.s.enableDrag)) {
62
+ _this.core.$el.on('onSlideClick.lg.tm', function() {
63
+ var $el = _this.core.$slide.eq(_this.core.index);
64
+ _this.loadVideoOnclick($el);
65
+ });
66
+ } else {
67
+
68
+ // For IE 9 and bellow
69
+ _this.core.$slide.on('click.lg', function() {
70
+ _this.loadVideoOnclick($(this));
71
+ });
72
+ }
73
+
74
+ _this.core.$el.on('onBeforeSlide.lg.tm', onBeforeSlide.bind(this));
75
+
76
+ _this.core.$el.on('onAfterSlide.lg.tm', function(event, prevIndex) {
77
+ _this.core.$slide.eq(prevIndex).removeClass('lg-video-playing');
78
+ });
79
+ };
80
+
81
+ Video.prototype.loadVideo = function(src, addClass, noPoster, index, html) {
82
+ var video = '';
83
+ var autoplay = 1;
84
+ var a = '';
85
+ var isVideo = this.core.isVideo(src, index) || {};
86
+
87
+ // Enable autoplay based on setting for first video if poster doesn't exist
88
+ if (noPoster) {
89
+ if (this.videoLoaded) {
90
+ autoplay = 0;
65
91
  } else {
66
- if(!_this.videoLoaded) {
67
- _this.core.$slide.eq(index).find('.lg-html5').get(0).play();
68
- }
92
+ autoplay = this.core.s.autoplayFirstVideo ? 1 : 0;
69
93
  }
70
94
  }
71
- });
72
-
73
- // Set max width for video
74
- _this.core.$el.on('onAferAppendSlide.lg.tm', function(event, index) {
75
- var $videoCont = _this.core.$slide.eq(index).find('.lg-video-cont');
76
- if (!$videoCont.hasClass('lg-has-iframe')) {
77
- $videoCont.css('max-width', _this.core.s.videoMaxWidth);
78
- _this.videoLoaded = true;
95
+
96
+ if (isVideo.youtube) {
97
+
98
+ a = '?wmode=opaque&autoplay=' + autoplay + '&enablejsapi=1';
99
+ if (this.core.s.youtubePlayerParams) {
100
+ a = a + '&' + $.param(this.core.s.youtubePlayerParams);
101
+ }
102
+
103
+ video = '<iframe class="lg-video-object lg-youtube ' + addClass + '" width="560" height="315" src="//www.youtube.com/embed/' + isVideo.youtube[1] + a + '" frameborder="0" allowfullscreen></iframe>';
104
+
105
+ } else if (isVideo.vimeo) {
106
+
107
+ a = '?autoplay=' + autoplay + '&api=1';
108
+ if (this.core.s.vimeoPlayerParams) {
109
+ a = a + '&' + $.param(this.core.s.vimeoPlayerParams);
110
+ }
111
+
112
+ video = '<iframe class="lg-video-object lg-vimeo ' + addClass + '" width="560" height="315" src="//player.vimeo.com/video/' + isVideo.vimeo[1] + a + '" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>';
113
+
114
+ } else if (isVideo.dailymotion) {
115
+
116
+ a = '?wmode=opaque&autoplay=' + autoplay + '&api=postMessage';
117
+ if (this.core.s.dailymotionPlayerParams) {
118
+ a = a + '&' + $.param(this.core.s.dailymotionPlayerParams);
119
+ }
120
+
121
+ video = '<iframe class="lg-video-object lg-dailymotion ' + addClass + '" width="560" height="315" src="//www.dailymotion.com/embed/video/' + isVideo.dailymotion[1] + a + '" frameborder="0" allowfullscreen></iframe>';
122
+
123
+ } else if (isVideo.html5) {
124
+ var fL = html.substring(0, 1);
125
+ if (fL === '.' || fL === '#') {
126
+ html = $(html).html();
127
+ }
128
+
129
+ video = html;
130
+
131
+ } else if (isVideo.vk) {
132
+
133
+ a = '&autoplay=' + autoplay;
134
+ if (this.core.s.vkPlayerParams) {
135
+ a = a + '&' + $.param(this.core.s.vkPlayerParams);
136
+ }
137
+
138
+ video = '<iframe class="lg-video-object lg-vk ' + addClass + '" width="560" height="315" src="http://vk.com/video_ext.php?' + isVideo.vk[1] + a + '" frameborder="0" allowfullscreen></iframe>';
139
+
79
140
  }
80
- });
141
+
142
+ return video;
143
+ };
81
144
 
82
- var loadOnClick = function($el) {
145
+ Video.prototype.loadVideoOnclick = function($el){
146
+
147
+ var _this = this;
83
148
  // check slide has poster
84
149
  if ($el.find('.lg-object').hasClass('lg-has-poster') && $el.find('.lg-object').is(':visible')) {
85
150
 
@@ -172,21 +237,46 @@
172
237
  }
173
238
  }
174
239
  };
240
+
241
+ Video.prototype.destroy = function() {
242
+ this.videoLoaded = false;
243
+ };
175
244
 
176
- if (_this.core.doCss() && (_this.core.$items.length > 1) && (_this.core.s.enableSwipe || _this.core.s.enableDrag)) {
177
- _this.core.$el.on('onSlideClick.lg.tm', function() {
178
- var $el = _this.core.$slide.eq(_this.core.index);
179
- loadOnClick($el);
180
- });
181
- } else {
245
+ function onHasVideo(event, index, src, html) {
246
+ /*jshint validthis:true */
247
+ var _this = this;
248
+ _this.core.$slide.eq(index).find('.lg-video').append(_this.loadVideo(src, 'lg-object', true, index, html));
249
+ if (html) {
250
+ if (_this.core.s.videojs) {
251
+ try {
252
+ videojs(_this.core.$slide.eq(index).find('.lg-html5').get(0), _this.core.s.videojsOptions, function() {
253
+ if (!_this.videoLoaded && _this.core.s.autoplayFirstVideo) {
254
+ this.play();
255
+ }
256
+ });
257
+ } catch (e) {
258
+ console.error('Make sure you have included videojs');
259
+ }
260
+ } else {
261
+ if(!_this.videoLoaded && _this.core.s.autoplayFirstVideo) {
262
+ _this.core.$slide.eq(index).find('.lg-html5').get(0).play();
263
+ }
264
+ }
265
+ }
266
+ }
182
267
 
183
- // For IE 9 and bellow
184
- _this.core.$slide.on('click.lg', function() {
185
- loadOnClick($(this));
186
- });
268
+ function onAferAppendSlide(event, index) {
269
+ /*jshint validthis:true */
270
+ var $videoCont = this.core.$slide.eq(index).find('.lg-video-cont');
271
+ if (!$videoCont.hasClass('lg-has-iframe')) {
272
+ $videoCont.css('max-width', this.core.s.videoMaxWidth);
273
+ this.videoLoaded = true;
274
+ }
187
275
  }
188
276
 
189
- _this.core.$el.on('onBeforeSlide.lg.tm', function(event, prevIndex, index) {
277
+ function onBeforeSlide(event, prevIndex, index) {
278
+ /*jshint validthis:true */
279
+ var _this = this;
190
280
 
191
281
  var $videoSlide = _this.core.$slide.eq(prevIndex);
192
282
  var youtubePlayer = $videoSlide.find('.lg-youtube').get(0);
@@ -232,86 +322,10 @@
232
322
  _this.core.$outer.addClass('lg-hide-download');
233
323
  }
234
324
 
235
- //$videoSlide.addClass('lg-complete');
236
-
237
- });
238
-
239
- _this.core.$el.on('onAfterSlide.lg.tm', function(event, prevIndex) {
240
- _this.core.$slide.eq(prevIndex).removeClass('lg-video-playing');
241
- });
242
- };
243
-
244
- Video.prototype.loadVideo = function(src, addClass, noposter, index, html) {
245
- var video = '';
246
- var autoplay = 1;
247
- var a = '';
248
- var isVideo = this.core.isVideo(src, index) || {};
249
-
250
- // Enable autoplay for first video if poster doesn't exist
251
- if (noposter) {
252
- if (this.videoLoaded) {
253
- autoplay = 0;
254
- } else {
255
- autoplay = 1;
256
- }
257
- }
258
-
259
- if (isVideo.youtube) {
260
-
261
- a = '?wmode=opaque&autoplay=' + autoplay + '&enablejsapi=1';
262
- if (this.core.s.youtubePlayerParams) {
263
- a = a + '&' + $.param(this.core.s.youtubePlayerParams);
264
- }
265
-
266
- video = '<iframe class="lg-video-object lg-youtube ' + addClass + '" width="560" height="315" src="//www.youtube.com/embed/' + isVideo.youtube[1] + a + '" frameborder="0" allowfullscreen></iframe>';
267
-
268
- } else if (isVideo.vimeo) {
269
-
270
- a = '?autoplay=' + autoplay + '&api=1';
271
- if (this.core.s.vimeoPlayerParams) {
272
- a = a + '&' + $.param(this.core.s.vimeoPlayerParams);
273
- }
274
-
275
- video = '<iframe class="lg-video-object lg-vimeo ' + addClass + '" width="560" height="315" src="//player.vimeo.com/video/' + isVideo.vimeo[1] + a + '" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>';
276
-
277
- } else if (isVideo.dailymotion) {
278
-
279
- a = '?wmode=opaque&autoplay=' + autoplay + '&api=postMessage';
280
- if (this.core.s.dailymotionPlayerParams) {
281
- a = a + '&' + $.param(this.core.s.dailymotionPlayerParams);
282
- }
283
-
284
- video = '<iframe class="lg-video-object lg-dailymotion ' + addClass + '" width="560" height="315" src="//www.dailymotion.com/embed/video/' + isVideo.dailymotion[1] + a + '" frameborder="0" allowfullscreen></iframe>';
285
-
286
- } else if (isVideo.html5) {
287
- var fL = html.substring(0, 1);
288
- if (fL === '.' || fL === '#') {
289
- html = $(html).html();
290
- }
291
-
292
- video = html;
293
-
294
- } else if (isVideo.vk) {
295
-
296
- a = '&autoplay=' + autoplay;
297
- if (this.core.s.vkPlayerParams) {
298
- a = a + '&' + $.param(this.core.s.vkPlayerParams);
299
- }
300
-
301
- video = '<iframe class="lg-video-object lg-vk ' + addClass + '" width="560" height="315" src="http://vk.com/video_ext.php?' + isVideo.vk[1] + a + '" frameborder="0" allowfullscreen></iframe>';
302
-
303
325
  }
304
-
305
- return video;
306
- };
307
-
308
- Video.prototype.destroy = function() {
309
- this.videoLoaded = false;
310
- };
311
-
312
- $.fn.lightGallery.modules.video = Video;
313
-
314
- })();
315
-
326
+
327
+ $.fn.lightGallery.modules.video = Video;
328
+
329
+ })();
316
330
 
317
331
  }));
@@ -1,4 +1,4 @@
1
- /*! lg-video - v1.1.0 - 2017-08-08
1
+ /*! lg-video - v1.2.0 - 2017-11-16
2
2
  * http://sachinchoolur.github.io/lightGallery
3
3
  * Copyright (c) 2017 Sachin N; Licensed GPLv3 */
4
- !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={videoMaxWidth:"855px",youtubePlayerParams:!1,vimeoPlayerParams:!1,dailymotionPlayerParams:!1,vkPlayerParams:!1,videojs:!1,videojsOptions:{}},c=function(c){return this.core=a(c).data("lightGallery"),this.$el=a(c),this.core.s=a.extend({},b,this.core.s),this.videoLoaded=!1,this.init(),this};c.prototype.init=function(){var b=this;b.core.$el.on("hasVideo.lg.tm",function(a,c,d,e){if(b.core.$slide.eq(c).find(".lg-video").append(b.loadVideo(d,"lg-object",!0,c,e)),e)if(b.core.s.videojs)try{videojs(b.core.$slide.eq(c).find(".lg-html5").get(0),b.core.s.videojsOptions,function(){b.videoLoaded||this.play()})}catch(a){console.error("Make sure you have included videojs")}else b.videoLoaded||b.core.$slide.eq(c).find(".lg-html5").get(0).play()}),b.core.$el.on("onAferAppendSlide.lg.tm",function(a,c){var d=b.core.$slide.eq(c).find(".lg-video-cont");d.hasClass("lg-has-iframe")||(d.css("max-width",b.core.s.videoMaxWidth),b.videoLoaded=!0)});var c=function(a){if(a.find(".lg-object").hasClass("lg-has-poster")&&a.find(".lg-object").is(":visible"))if(a.hasClass("lg-has-video")){var c=a.find(".lg-youtube").get(0),d=a.find(".lg-vimeo").get(0),e=a.find(".lg-dailymotion").get(0),f=a.find(".lg-html5").get(0);if(c)c.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*");else if(d)try{$f(d).api("play")}catch(a){console.error("Make sure you have included froogaloop2 js")}else if(e)e.contentWindow.postMessage("play","*");else if(f)if(b.core.s.videojs)try{videojs(f).play()}catch(a){console.error("Make sure you have included videojs")}else f.play();a.addClass("lg-video-playing")}else{a.addClass("lg-video-playing lg-has-video");var g,h,i=function(c,d){if(a.find(".lg-video").append(b.loadVideo(c,"",!1,b.core.index,d)),d)if(b.core.s.videojs)try{videojs(b.core.$slide.eq(b.core.index).find(".lg-html5").get(0),b.core.s.videojsOptions,function(){this.play()})}catch(a){console.error("Make sure you have included videojs")}else b.core.$slide.eq(b.core.index).find(".lg-html5").get(0).play()};b.core.s.dynamic?(g=b.core.s.dynamicEl[b.core.index].src,h=b.core.s.dynamicEl[b.core.index].html,i(g,h)):(g=b.core.$items.eq(b.core.index).attr("href")||b.core.$items.eq(b.core.index).attr("data-src"),h=b.core.$items.eq(b.core.index).attr("data-html"),i(g,h));var j=a.find(".lg-object");a.find(".lg-video").append(j),a.find(".lg-video-object").hasClass("lg-html5")||(a.removeClass("lg-complete"),a.find(".lg-video-object").on("load.lg error.lg",function(){a.addClass("lg-complete")}))}};b.core.doCss()&&b.core.$items.length>1&&(b.core.s.enableSwipe||b.core.s.enableDrag)?b.core.$el.on("onSlideClick.lg.tm",function(){var a=b.core.$slide.eq(b.core.index);c(a)}):b.core.$slide.on("click.lg",function(){c(a(this))}),b.core.$el.on("onBeforeSlide.lg.tm",function(c,d,e){var f=b.core.$slide.eq(d),g=f.find(".lg-youtube").get(0),h=f.find(".lg-vimeo").get(0),i=f.find(".lg-dailymotion").get(0),j=f.find(".lg-vk").get(0),k=f.find(".lg-html5").get(0);if(g)g.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*");else if(h)try{$f(h).api("pause")}catch(a){console.error("Make sure you have included froogaloop2 js")}else if(i)i.contentWindow.postMessage("pause","*");else if(k)if(b.core.s.videojs)try{videojs(k).pause()}catch(a){console.error("Make sure you have included videojs")}else k.pause();j&&a(j).attr("src",a(j).attr("src").replace("&autoplay","&noplay"));var l;l=b.core.s.dynamic?b.core.s.dynamicEl[e].src:b.core.$items.eq(e).attr("href")||b.core.$items.eq(e).attr("data-src");var m=b.core.isVideo(l,e)||{};(m.youtube||m.vimeo||m.dailymotion||m.vk)&&b.core.$outer.addClass("lg-hide-download")}),b.core.$el.on("onAfterSlide.lg.tm",function(a,c){b.core.$slide.eq(c).removeClass("lg-video-playing")})},c.prototype.loadVideo=function(b,c,d,e,f){var g="",h=1,i="",j=this.core.isVideo(b,e)||{};if(d&&(h=this.videoLoaded?0:1),j.youtube)i="?wmode=opaque&autoplay="+h+"&enablejsapi=1",this.core.s.youtubePlayerParams&&(i=i+"&"+a.param(this.core.s.youtubePlayerParams)),g='<iframe class="lg-video-object lg-youtube '+c+'" width="560" height="315" src="//www.youtube.com/embed/'+j.youtube[1]+i+'" frameborder="0" allowfullscreen></iframe>';else if(j.vimeo)i="?autoplay="+h+"&api=1",this.core.s.vimeoPlayerParams&&(i=i+"&"+a.param(this.core.s.vimeoPlayerParams)),g='<iframe class="lg-video-object lg-vimeo '+c+'" width="560" height="315" src="//player.vimeo.com/video/'+j.vimeo[1]+i+'" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>';else if(j.dailymotion)i="?wmode=opaque&autoplay="+h+"&api=postMessage",this.core.s.dailymotionPlayerParams&&(i=i+"&"+a.param(this.core.s.dailymotionPlayerParams)),g='<iframe class="lg-video-object lg-dailymotion '+c+'" width="560" height="315" src="//www.dailymotion.com/embed/video/'+j.dailymotion[1]+i+'" frameborder="0" allowfullscreen></iframe>';else if(j.html5){var k=f.substring(0,1);"."!==k&&"#"!==k||(f=a(f).html()),g=f}else j.vk&&(i="&autoplay="+h,this.core.s.vkPlayerParams&&(i=i+"&"+a.param(this.core.s.vkPlayerParams)),g='<iframe class="lg-video-object lg-vk '+c+'" width="560" height="315" src="http://vk.com/video_ext.php?'+j.vk[1]+i+'" frameborder="0" allowfullscreen></iframe>');return g},c.prototype.destroy=function(){this.videoLoaded=!1},a.fn.lightGallery.modules.video=c}()});
4
+ !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";function b(a,b,c,d){var e=this;if(e.core.$slide.eq(b).find(".lg-video").append(e.loadVideo(c,"lg-object",!0,b,d)),d)if(e.core.s.videojs)try{videojs(e.core.$slide.eq(b).find(".lg-html5").get(0),e.core.s.videojsOptions,function(){!e.videoLoaded&&e.core.s.autoplayFirstVideo&&this.play()})}catch(a){console.error("Make sure you have included videojs")}else!e.videoLoaded&&e.core.s.autoplayFirstVideo&&e.core.$slide.eq(b).find(".lg-html5").get(0).play()}function c(a,b){var c=this.core.$slide.eq(b).find(".lg-video-cont");c.hasClass("lg-has-iframe")||(c.css("max-width",this.core.s.videoMaxWidth),this.videoLoaded=!0)}function d(b,c,d){var e=this,f=e.core.$slide.eq(c),g=f.find(".lg-youtube").get(0),h=f.find(".lg-vimeo").get(0),i=f.find(".lg-dailymotion").get(0),j=f.find(".lg-vk").get(0),k=f.find(".lg-html5").get(0);if(g)g.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*");else if(h)try{$f(h).api("pause")}catch(a){console.error("Make sure you have included froogaloop2 js")}else if(i)i.contentWindow.postMessage("pause","*");else if(k)if(e.core.s.videojs)try{videojs(k).pause()}catch(a){console.error("Make sure you have included videojs")}else k.pause();j&&a(j).attr("src",a(j).attr("src").replace("&autoplay","&noplay"));var l;l=e.core.s.dynamic?e.core.s.dynamicEl[d].src:e.core.$items.eq(d).attr("href")||e.core.$items.eq(d).attr("data-src");var m=e.core.isVideo(l,d)||{};(m.youtube||m.vimeo||m.dailymotion||m.vk)&&e.core.$outer.addClass("lg-hide-download")}var e={videoMaxWidth:"855px",autoplayFirstVideo:!0,youtubePlayerParams:!1,vimeoPlayerParams:!1,dailymotionPlayerParams:!1,vkPlayerParams:!1,videojs:!1,videojsOptions:{}},f=function(b){return this.core=a(b).data("lightGallery"),this.$el=a(b),this.core.s=a.extend({},e,this.core.s),this.videoLoaded=!1,this.init(),this};f.prototype.init=function(){var e=this;e.core.$el.on("hasVideo.lg.tm",b.bind(this)),e.core.$el.on("onAferAppendSlide.lg.tm",c.bind(this)),e.core.doCss()&&e.core.$items.length>1&&(e.core.s.enableSwipe||e.core.s.enableDrag)?e.core.$el.on("onSlideClick.lg.tm",function(){var a=e.core.$slide.eq(e.core.index);e.loadVideoOnclick(a)}):e.core.$slide.on("click.lg",function(){e.loadVideoOnclick(a(this))}),e.core.$el.on("onBeforeSlide.lg.tm",d.bind(this)),e.core.$el.on("onAfterSlide.lg.tm",function(a,b){e.core.$slide.eq(b).removeClass("lg-video-playing")})},f.prototype.loadVideo=function(b,c,d,e,f){var g="",h=1,i="",j=this.core.isVideo(b,e)||{};if(d&&(h=this.videoLoaded?0:this.core.s.autoplayFirstVideo?1:0),j.youtube)i="?wmode=opaque&autoplay="+h+"&enablejsapi=1",this.core.s.youtubePlayerParams&&(i=i+"&"+a.param(this.core.s.youtubePlayerParams)),g='<iframe class="lg-video-object lg-youtube '+c+'" width="560" height="315" src="//www.youtube.com/embed/'+j.youtube[1]+i+'" frameborder="0" allowfullscreen></iframe>';else if(j.vimeo)i="?autoplay="+h+"&api=1",this.core.s.vimeoPlayerParams&&(i=i+"&"+a.param(this.core.s.vimeoPlayerParams)),g='<iframe class="lg-video-object lg-vimeo '+c+'" width="560" height="315" src="//player.vimeo.com/video/'+j.vimeo[1]+i+'" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>';else if(j.dailymotion)i="?wmode=opaque&autoplay="+h+"&api=postMessage",this.core.s.dailymotionPlayerParams&&(i=i+"&"+a.param(this.core.s.dailymotionPlayerParams)),g='<iframe class="lg-video-object lg-dailymotion '+c+'" width="560" height="315" src="//www.dailymotion.com/embed/video/'+j.dailymotion[1]+i+'" frameborder="0" allowfullscreen></iframe>';else if(j.html5){var k=f.substring(0,1);"."!==k&&"#"!==k||(f=a(f).html()),g=f}else j.vk&&(i="&autoplay="+h,this.core.s.vkPlayerParams&&(i=i+"&"+a.param(this.core.s.vkPlayerParams)),g='<iframe class="lg-video-object lg-vk '+c+'" width="560" height="315" src="http://vk.com/video_ext.php?'+j.vk[1]+i+'" frameborder="0" allowfullscreen></iframe>');return g},f.prototype.loadVideoOnclick=function(a){var b=this;if(a.find(".lg-object").hasClass("lg-has-poster")&&a.find(".lg-object").is(":visible"))if(a.hasClass("lg-has-video")){var c=a.find(".lg-youtube").get(0),d=a.find(".lg-vimeo").get(0),e=a.find(".lg-dailymotion").get(0),f=a.find(".lg-html5").get(0);if(c)c.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*");else if(d)try{$f(d).api("play")}catch(a){console.error("Make sure you have included froogaloop2 js")}else if(e)e.contentWindow.postMessage("play","*");else if(f)if(b.core.s.videojs)try{videojs(f).play()}catch(a){console.error("Make sure you have included videojs")}else f.play();a.addClass("lg-video-playing")}else{a.addClass("lg-video-playing lg-has-video");var g,h,i=function(c,d){if(a.find(".lg-video").append(b.loadVideo(c,"",!1,b.core.index,d)),d)if(b.core.s.videojs)try{videojs(b.core.$slide.eq(b.core.index).find(".lg-html5").get(0),b.core.s.videojsOptions,function(){this.play()})}catch(a){console.error("Make sure you have included videojs")}else b.core.$slide.eq(b.core.index).find(".lg-html5").get(0).play()};b.core.s.dynamic?(g=b.core.s.dynamicEl[b.core.index].src,h=b.core.s.dynamicEl[b.core.index].html,i(g,h)):(g=b.core.$items.eq(b.core.index).attr("href")||b.core.$items.eq(b.core.index).attr("data-src"),h=b.core.$items.eq(b.core.index).attr("data-html"),i(g,h));var j=a.find(".lg-object");a.find(".lg-video").append(j),a.find(".lg-video-object").hasClass("lg-html5")||(a.removeClass("lg-complete"),a.find(".lg-video-object").on("load.lg error.lg",function(){a.addClass("lg-complete")}))}},f.prototype.destroy=function(){this.videoLoaded=!1},a.fn.lightGallery.modules.video=f}()});
@@ -1,9 +1,9 @@
1
- /*! lightgallery - v1.6.0 - 2017-08-08
1
+ /*! lightgallery - v1.6.7 - 2018-02-11
2
2
  * http://sachinchoolur.github.io/lightGallery/
3
- * Copyright (c) 2017 Sachin N; Licensed GPLv3 */
4
- /*! lightgallery - v1.6.0 - 2017-08-08
3
+ * Copyright (c) 2018 Sachin N; Licensed GPLv3 */
4
+ /*! lightgallery - v1.6.7 - 2018-02-11
5
5
  * http://sachinchoolur.github.io/lightGallery/
6
- * Copyright (c) 2017 Sachin N; Licensed GPLv3 */
6
+ * Copyright (c) 2018 Sachin N; Licensed GPLv3 */
7
7
  (function (root, factory) {
8
8
  if (typeof define === 'function' && define.amd) {
9
9
  // AMD. Register as an anonymous module unless amdModuleId is set
@@ -920,6 +920,7 @@
920
920
  }
921
921
 
922
922
  }
923
+ _this.index = index;
923
924
 
924
925
  };
925
926
 
@@ -1153,29 +1154,22 @@
1153
1154
  var isDraging = false;
1154
1155
  var isMoved = false;
1155
1156
  if (_this.s.enableDrag && _this.doCss()) {
1156
- _this.$slide.on('mousedown.lg', function(e) {
1157
- // execute only on .lg-object
1158
- if (!_this.$outer.hasClass('lg-zoomed')) {
1159
- if ($(e.target).hasClass('lg-object') || $(e.target).hasClass('lg-video-play')) {
1160
- e.preventDefault();
1161
-
1162
- if (!_this.lgBusy) {
1163
- _this.manageSwipeClass();
1164
- startCoords = e.pageX;
1165
- isDraging = true;
1166
-
1167
- // ** Fix for webkit cursor issue https://code.google.com/p/chromium/issues/detail?id=26723
1168
- _this.$outer.scrollLeft += 1;
1169
- _this.$outer.scrollLeft -= 1;
1157
+ _this.$outer.on('mousedown.lg', function(e) {
1158
+ if (!_this.$outer.hasClass('lg-zoomed') && !_this.lgBusy && !$(e.target).text()) {
1159
+ e.preventDefault();
1160
+ _this.manageSwipeClass();
1161
+ startCoords = e.pageX;
1162
+ isDraging = true;
1170
1163
 
1171
- // *
1164
+ // ** Fix for webkit cursor issue https://code.google.com/p/chromium/issues/detail?id=26723
1165
+ _this.$outer.scrollLeft += 1;
1166
+ _this.$outer.scrollLeft -= 1;
1172
1167
 
1173
- _this.$outer.removeClass('lg-grab').addClass('lg-grabbing');
1168
+ // *
1174
1169
 
1175
- _this.$el.trigger('onDragstart.lg');
1176
- }
1170
+ _this.$outer.removeClass('lg-grab').addClass('lg-grabbing');
1177
1171
 
1178
- }
1172
+ _this.$el.trigger('onDragstart.lg');
1179
1173
  }
1180
1174
  });
1181
1175
 
@@ -1266,6 +1260,10 @@
1266
1260
  }
1267
1261
 
1268
1262
  });
1263
+
1264
+ _this.$outer.on('mousemove.lg', function() {
1265
+ mousedown = false;
1266
+ });
1269
1267
 
1270
1268
  _this.$outer.on('mouseup.lg', function(e) {
1271
1269
 
@@ -2274,7 +2272,7 @@
2274
2272
 
2275
2273
  }));
2276
2274
 
2277
- /*! lg-video - v1.1.0 - 2017-08-08
2275
+ /*! lg-video - v1.2.0 - 2017-11-16
2278
2276
  * http://sachinchoolur.github.io/lightGallery
2279
2277
  * Copyright (c) 2017 Sachin N; Licensed GPLv3 */
2280
2278
 
@@ -2295,67 +2293,132 @@
2295
2293
  }(this, function ($) {
2296
2294
 
2297
2295
  (function() {
2296
+
2297
+ 'use strict';
2298
+
2299
+ var defaults = {
2300
+ videoMaxWidth: '855px',
2298
2301
 
2299
- 'use strict';
2302
+ autoplayFirstVideo: true,
2300
2303
 
2301
- var defaults = {
2302
- videoMaxWidth: '855px',
2303
- youtubePlayerParams: false,
2304
- vimeoPlayerParams: false,
2305
- dailymotionPlayerParams: false,
2306
- vkPlayerParams: false,
2307
- videojs: false,
2308
- videojsOptions: {}
2309
- };
2310
-
2311
- var Video = function(element) {
2312
-
2313
- this.core = $(element).data('lightGallery');
2314
-
2315
- this.$el = $(element);
2316
- this.core.s = $.extend({}, defaults, this.core.s);
2317
- this.videoLoaded = false;
2318
-
2319
- this.init();
2320
-
2321
- return this;
2322
- };
2304
+ youtubePlayerParams: false,
2305
+ vimeoPlayerParams: false,
2306
+ dailymotionPlayerParams: false,
2307
+ vkPlayerParams: false,
2323
2308
 
2324
- Video.prototype.init = function() {
2325
- var _this = this;
2326
-
2327
- // Event triggered when video url found without poster
2328
- _this.core.$el.on('hasVideo.lg.tm', function(event, index, src, html) {
2329
- _this.core.$slide.eq(index).find('.lg-video').append(_this.loadVideo(src, 'lg-object', true, index, html));
2330
- if (html) {
2331
- if (_this.core.s.videojs) {
2332
- try {
2333
- videojs(_this.core.$slide.eq(index).find('.lg-html5').get(0), _this.core.s.videojsOptions, function() {
2334
- if (!_this.videoLoaded) {
2335
- this.play();
2336
- }
2337
- });
2338
- } catch (e) {
2339
- console.error('Make sure you have included videojs');
2340
- }
2341
- } else {
2342
- if(!_this.videoLoaded) {
2343
- _this.core.$slide.eq(index).find('.lg-html5').get(0).play();
2344
- }
2345
- }
2309
+ videojs: false,
2310
+ videojsOptions: {}
2311
+ };
2312
+
2313
+ var Video = function(element) {
2314
+
2315
+ this.core = $(element).data('lightGallery');
2316
+
2317
+ this.$el = $(element);
2318
+ this.core.s = $.extend({}, defaults, this.core.s);
2319
+ this.videoLoaded = false;
2320
+
2321
+ this.init();
2322
+
2323
+ return this;
2324
+ };
2325
+
2326
+ Video.prototype.init = function() {
2327
+ var _this = this;
2328
+
2329
+ // Event triggered when video url found without poster
2330
+ _this.core.$el.on('hasVideo.lg.tm', onHasVideo.bind(this));
2331
+
2332
+ // Set max width for video
2333
+ _this.core.$el.on('onAferAppendSlide.lg.tm', onAferAppendSlide.bind(this));
2334
+
2335
+ if (_this.core.doCss() && (_this.core.$items.length > 1) && (_this.core.s.enableSwipe || _this.core.s.enableDrag)) {
2336
+ _this.core.$el.on('onSlideClick.lg.tm', function() {
2337
+ var $el = _this.core.$slide.eq(_this.core.index);
2338
+ _this.loadVideoOnclick($el);
2339
+ });
2340
+ } else {
2341
+
2342
+ // For IE 9 and bellow
2343
+ _this.core.$slide.on('click.lg', function() {
2344
+ _this.loadVideoOnclick($(this));
2345
+ });
2346
2346
  }
2347
- });
2347
+
2348
+ _this.core.$el.on('onBeforeSlide.lg.tm', onBeforeSlide.bind(this));
2349
+
2350
+ _this.core.$el.on('onAfterSlide.lg.tm', function(event, prevIndex) {
2351
+ _this.core.$slide.eq(prevIndex).removeClass('lg-video-playing');
2352
+ });
2353
+ };
2354
+
2355
+ Video.prototype.loadVideo = function(src, addClass, noPoster, index, html) {
2356
+ var video = '';
2357
+ var autoplay = 1;
2358
+ var a = '';
2359
+ var isVideo = this.core.isVideo(src, index) || {};
2360
+
2361
+ // Enable autoplay based on setting for first video if poster doesn't exist
2362
+ if (noPoster) {
2363
+ if (this.videoLoaded) {
2364
+ autoplay = 0;
2365
+ } else {
2366
+ autoplay = this.core.s.autoplayFirstVideo ? 1 : 0;
2367
+ }
2368
+ }
2369
+
2370
+ if (isVideo.youtube) {
2371
+
2372
+ a = '?wmode=opaque&autoplay=' + autoplay + '&enablejsapi=1';
2373
+ if (this.core.s.youtubePlayerParams) {
2374
+ a = a + '&' + $.param(this.core.s.youtubePlayerParams);
2375
+ }
2376
+
2377
+ video = '<iframe class="lg-video-object lg-youtube ' + addClass + '" width="560" height="315" src="//www.youtube.com/embed/' + isVideo.youtube[1] + a + '" frameborder="0" allowfullscreen></iframe>';
2378
+
2379
+ } else if (isVideo.vimeo) {
2380
+
2381
+ a = '?autoplay=' + autoplay + '&api=1';
2382
+ if (this.core.s.vimeoPlayerParams) {
2383
+ a = a + '&' + $.param(this.core.s.vimeoPlayerParams);
2384
+ }
2385
+
2386
+ video = '<iframe class="lg-video-object lg-vimeo ' + addClass + '" width="560" height="315" src="//player.vimeo.com/video/' + isVideo.vimeo[1] + a + '" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>';
2387
+
2388
+ } else if (isVideo.dailymotion) {
2389
+
2390
+ a = '?wmode=opaque&autoplay=' + autoplay + '&api=postMessage';
2391
+ if (this.core.s.dailymotionPlayerParams) {
2392
+ a = a + '&' + $.param(this.core.s.dailymotionPlayerParams);
2393
+ }
2394
+
2395
+ video = '<iframe class="lg-video-object lg-dailymotion ' + addClass + '" width="560" height="315" src="//www.dailymotion.com/embed/video/' + isVideo.dailymotion[1] + a + '" frameborder="0" allowfullscreen></iframe>';
2396
+
2397
+ } else if (isVideo.html5) {
2398
+ var fL = html.substring(0, 1);
2399
+ if (fL === '.' || fL === '#') {
2400
+ html = $(html).html();
2401
+ }
2402
+
2403
+ video = html;
2404
+
2405
+ } else if (isVideo.vk) {
2406
+
2407
+ a = '&autoplay=' + autoplay;
2408
+ if (this.core.s.vkPlayerParams) {
2409
+ a = a + '&' + $.param(this.core.s.vkPlayerParams);
2410
+ }
2411
+
2412
+ video = '<iframe class="lg-video-object lg-vk ' + addClass + '" width="560" height="315" src="http://vk.com/video_ext.php?' + isVideo.vk[1] + a + '" frameborder="0" allowfullscreen></iframe>';
2413
+
2414
+ }
2415
+
2416
+ return video;
2417
+ };
2348
2418
 
2349
- // Set max width for video
2350
- _this.core.$el.on('onAferAppendSlide.lg.tm', function(event, index) {
2351
- var $videoCont = _this.core.$slide.eq(index).find('.lg-video-cont');
2352
- if (!$videoCont.hasClass('lg-has-iframe')) {
2353
- $videoCont.css('max-width', _this.core.s.videoMaxWidth);
2354
- _this.videoLoaded = true;
2355
- }
2356
- });
2419
+ Video.prototype.loadVideoOnclick = function($el){
2357
2420
 
2358
- var loadOnClick = function($el) {
2421
+ var _this = this;
2359
2422
  // check slide has poster
2360
2423
  if ($el.find('.lg-object').hasClass('lg-has-poster') && $el.find('.lg-object').is(':visible')) {
2361
2424
 
@@ -2448,21 +2511,46 @@
2448
2511
  }
2449
2512
  }
2450
2513
  };
2514
+
2515
+ Video.prototype.destroy = function() {
2516
+ this.videoLoaded = false;
2517
+ };
2451
2518
 
2452
- if (_this.core.doCss() && (_this.core.$items.length > 1) && (_this.core.s.enableSwipe || _this.core.s.enableDrag)) {
2453
- _this.core.$el.on('onSlideClick.lg.tm', function() {
2454
- var $el = _this.core.$slide.eq(_this.core.index);
2455
- loadOnClick($el);
2456
- });
2457
- } else {
2519
+ function onHasVideo(event, index, src, html) {
2520
+ /*jshint validthis:true */
2521
+ var _this = this;
2522
+ _this.core.$slide.eq(index).find('.lg-video').append(_this.loadVideo(src, 'lg-object', true, index, html));
2523
+ if (html) {
2524
+ if (_this.core.s.videojs) {
2525
+ try {
2526
+ videojs(_this.core.$slide.eq(index).find('.lg-html5').get(0), _this.core.s.videojsOptions, function() {
2527
+ if (!_this.videoLoaded && _this.core.s.autoplayFirstVideo) {
2528
+ this.play();
2529
+ }
2530
+ });
2531
+ } catch (e) {
2532
+ console.error('Make sure you have included videojs');
2533
+ }
2534
+ } else {
2535
+ if(!_this.videoLoaded && _this.core.s.autoplayFirstVideo) {
2536
+ _this.core.$slide.eq(index).find('.lg-html5').get(0).play();
2537
+ }
2538
+ }
2539
+ }
2540
+ }
2458
2541
 
2459
- // For IE 9 and bellow
2460
- _this.core.$slide.on('click.lg', function() {
2461
- loadOnClick($(this));
2462
- });
2542
+ function onAferAppendSlide(event, index) {
2543
+ /*jshint validthis:true */
2544
+ var $videoCont = this.core.$slide.eq(index).find('.lg-video-cont');
2545
+ if (!$videoCont.hasClass('lg-has-iframe')) {
2546
+ $videoCont.css('max-width', this.core.s.videoMaxWidth);
2547
+ this.videoLoaded = true;
2548
+ }
2463
2549
  }
2464
2550
 
2465
- _this.core.$el.on('onBeforeSlide.lg.tm', function(event, prevIndex, index) {
2551
+ function onBeforeSlide(event, prevIndex, index) {
2552
+ /*jshint validthis:true */
2553
+ var _this = this;
2466
2554
 
2467
2555
  var $videoSlide = _this.core.$slide.eq(prevIndex);
2468
2556
  var youtubePlayer = $videoSlide.find('.lg-youtube').get(0);
@@ -2508,87 +2596,11 @@
2508
2596
  _this.core.$outer.addClass('lg-hide-download');
2509
2597
  }
2510
2598
 
2511
- //$videoSlide.addClass('lg-complete');
2512
-
2513
- });
2514
-
2515
- _this.core.$el.on('onAfterSlide.lg.tm', function(event, prevIndex) {
2516
- _this.core.$slide.eq(prevIndex).removeClass('lg-video-playing');
2517
- });
2518
- };
2519
-
2520
- Video.prototype.loadVideo = function(src, addClass, noposter, index, html) {
2521
- var video = '';
2522
- var autoplay = 1;
2523
- var a = '';
2524
- var isVideo = this.core.isVideo(src, index) || {};
2525
-
2526
- // Enable autoplay for first video if poster doesn't exist
2527
- if (noposter) {
2528
- if (this.videoLoaded) {
2529
- autoplay = 0;
2530
- } else {
2531
- autoplay = 1;
2532
- }
2533
2599
  }
2534
-
2535
- if (isVideo.youtube) {
2536
-
2537
- a = '?wmode=opaque&autoplay=' + autoplay + '&enablejsapi=1';
2538
- if (this.core.s.youtubePlayerParams) {
2539
- a = a + '&' + $.param(this.core.s.youtubePlayerParams);
2540
- }
2541
-
2542
- video = '<iframe class="lg-video-object lg-youtube ' + addClass + '" width="560" height="315" src="//www.youtube.com/embed/' + isVideo.youtube[1] + a + '" frameborder="0" allowfullscreen></iframe>';
2543
-
2544
- } else if (isVideo.vimeo) {
2545
-
2546
- a = '?autoplay=' + autoplay + '&api=1';
2547
- if (this.core.s.vimeoPlayerParams) {
2548
- a = a + '&' + $.param(this.core.s.vimeoPlayerParams);
2549
- }
2550
-
2551
- video = '<iframe class="lg-video-object lg-vimeo ' + addClass + '" width="560" height="315" src="//player.vimeo.com/video/' + isVideo.vimeo[1] + a + '" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>';
2552
-
2553
- } else if (isVideo.dailymotion) {
2554
-
2555
- a = '?wmode=opaque&autoplay=' + autoplay + '&api=postMessage';
2556
- if (this.core.s.dailymotionPlayerParams) {
2557
- a = a + '&' + $.param(this.core.s.dailymotionPlayerParams);
2558
- }
2559
-
2560
- video = '<iframe class="lg-video-object lg-dailymotion ' + addClass + '" width="560" height="315" src="//www.dailymotion.com/embed/video/' + isVideo.dailymotion[1] + a + '" frameborder="0" allowfullscreen></iframe>';
2561
-
2562
- } else if (isVideo.html5) {
2563
- var fL = html.substring(0, 1);
2564
- if (fL === '.' || fL === '#') {
2565
- html = $(html).html();
2566
- }
2567
-
2568
- video = html;
2569
-
2570
- } else if (isVideo.vk) {
2571
-
2572
- a = '&autoplay=' + autoplay;
2573
- if (this.core.s.vkPlayerParams) {
2574
- a = a + '&' + $.param(this.core.s.vkPlayerParams);
2575
- }
2576
-
2577
- video = '<iframe class="lg-video-object lg-vk ' + addClass + '" width="560" height="315" src="http://vk.com/video_ext.php?' + isVideo.vk[1] + a + '" frameborder="0" allowfullscreen></iframe>';
2578
-
2579
- }
2580
-
2581
- return video;
2582
- };
2583
-
2584
- Video.prototype.destroy = function() {
2585
- this.videoLoaded = false;
2586
- };
2587
-
2588
- $.fn.lightGallery.modules.video = Video;
2589
-
2590
- })();
2591
-
2600
+
2601
+ $.fn.lightGallery.modules.video = Video;
2602
+
2603
+ })();
2592
2604
 
2593
2605
  }));
2594
2606
 
@@ -3120,7 +3132,7 @@
3120
3132
 
3121
3133
  }));
3122
3134
 
3123
- /*! lg-hash - v1.0.2 - 2017-06-03
3135
+ /*! lg-hash - v1.0.4 - 2017-12-20
3124
3136
  * http://sachinchoolur.github.io/lightGallery
3125
3137
  * Copyright (c) 2017 Sachin N; Licensed GPLv3 */
3126
3138
 
@@ -3169,7 +3181,7 @@
3169
3181
  // Change hash value on after each slide transition
3170
3182
  _this.core.$el.on('onAfterSlide.lg.tm', function(event, prevIndex, index) {
3171
3183
  if (history.replaceState) {
3172
- history.replaceState(null, null, '#lg=' + _this.core.s.galleryId + '&slide=' + index);
3184
+ history.replaceState(null, null, window.location.pathname + window.location.search + '#lg=' + _this.core.s.galleryId + '&slide=' + index);
3173
3185
  } else {
3174
3186
  window.location.hash = 'lg=' + _this.core.s.galleryId + '&slide=' + index;
3175
3187
  }
@@ -3219,11 +3231,12 @@
3219
3231
 
3220
3232
  })();
3221
3233
 
3234
+
3222
3235
  }));
3223
3236
 
3224
- /*! lg-share - v1.0.2 - 2016-11-26
3237
+ /*! lg-share - v1.1.0 - 2017-10-03
3225
3238
  * http://sachinchoolur.github.io/lightGallery
3226
- * Copyright (c) 2016 Sachin N; Licensed GPLv3 */
3239
+ * Copyright (c) 2017 Sachin N; Licensed GPLv3 */
3227
3240
 
3228
3241
  (function (root, factory) {
3229
3242
  if (typeof define === 'function' && define.amd) {
@@ -3291,19 +3304,32 @@
3291
3304
 
3292
3305
  _this.core.$el.on('onAfterSlide.lg.tm', function(event, prevIndex, index) {
3293
3306
 
3294
- setTimeout(function() {
3295
- $('#lg-share-facebook').attr('href', 'https://www.facebook.com/sharer/sharer.php?u=' + (encodeURIComponent(_this.core.$items.eq(index).attr('data-facebook-share-url') || window.location.href)));
3307
+ setTimeout(function() {
3308
+
3309
+ $('#lg-share-facebook').attr('href', 'https://www.facebook.com/sharer/sharer.php?u=' + (encodeURIComponent(_this.getSahreProps(index, 'facebookShareUrl') || window.location.href)));
3296
3310
 
3297
- $('#lg-share-twitter').attr('href', 'https://twitter.com/intent/tweet?text=' + _this.core.$items.eq(index).attr('data-tweet-text') + '&url=' + (encodeURIComponent(_this.core.$items.eq(index).attr('data-twitter-share-url') || window.location.href)));
3311
+ $('#lg-share-twitter').attr('href', 'https://twitter.com/intent/tweet?text=' + _this.getSahreProps(index, 'tweetText') + '&url=' + (encodeURIComponent(_this.getSahreProps(index, 'twitterShareUrl') || window.location.href)));
3298
3312
 
3299
- $('#lg-share-googleplus').attr('href', 'https://plus.google.com/share?url=' + (encodeURIComponent(_this.core.$items.eq(index).attr('data-googleplus-share-url') || window.location.href)));
3313
+ $('#lg-share-googleplus').attr('href', 'https://plus.google.com/share?url=' + (encodeURIComponent(_this.getSahreProps(index, 'googleplusShareUrl') || window.location.href)));
3300
3314
 
3301
- $('#lg-share-pinterest').attr('href', 'http://www.pinterest.com/pin/create/button/?url=' + (encodeURIComponent(_this.core.$items.eq(index).attr('data-pinterest-share-url') || window.location.href)) + '&media=' + encodeURIComponent(_this.core.$items.eq(index).attr('href') || _this.core.$items.eq(index).attr('data-src')) + '&description=' + _this.core.$items.eq(index).attr('data-pinterest-text'));
3315
+ $('#lg-share-pinterest').attr('href', 'http://www.pinterest.com/pin/create/button/?url=' + (encodeURIComponent(_this.getSahreProps(index, 'pinterestShareUrl') || window.location.href)) + '&media=' + encodeURIComponent(_this.getSahreProps(index, 'src')) + '&description=' + _this.getSahreProps(index, 'pinterestText'));
3302
3316
 
3303
3317
  }, 100);
3304
3318
  });
3305
3319
  };
3306
3320
 
3321
+ Share.prototype.getSahreProps = function(index, prop){
3322
+ var shareProp = '';
3323
+ if(this.core.s.dynamic) {
3324
+ shareProp = this.core.s.dynamicEl[index][prop];
3325
+ } else {
3326
+ var _href = this.core.$items.eq(index).attr('href');
3327
+ var _prop = this.core.$items.eq(index).data(prop);
3328
+ shareProp = prop === 'src' ? _href || _prop : _prop;
3329
+ }
3330
+ return shareProp;
3331
+ };
3332
+
3307
3333
  Share.prototype.destroy = function() {
3308
3334
 
3309
3335
  };
@@ -1,6 +1,6 @@
1
- /*! lightgallery - v1.6.0 - 2017-08-08
1
+ /*! lightgallery - v1.6.7 - 2018-02-11
2
2
  * http://sachinchoolur.github.io/lightGallery/
3
- * Copyright (c) 2017 Sachin N; Licensed GPLv3 */
3
+ * Copyright (c) 2018 Sachin N; Licensed GPLv3 */
4
4
  (function (root, factory) {
5
5
  if (typeof define === 'function' && define.amd) {
6
6
  // AMD. Register as an anonymous module unless amdModuleId is set
@@ -917,6 +917,7 @@
917
917
  }
918
918
 
919
919
  }
920
+ _this.index = index;
920
921
 
921
922
  };
922
923
 
@@ -1150,29 +1151,22 @@
1150
1151
  var isDraging = false;
1151
1152
  var isMoved = false;
1152
1153
  if (_this.s.enableDrag && _this.doCss()) {
1153
- _this.$slide.on('mousedown.lg', function(e) {
1154
- // execute only on .lg-object
1155
- if (!_this.$outer.hasClass('lg-zoomed')) {
1156
- if ($(e.target).hasClass('lg-object') || $(e.target).hasClass('lg-video-play')) {
1157
- e.preventDefault();
1158
-
1159
- if (!_this.lgBusy) {
1160
- _this.manageSwipeClass();
1161
- startCoords = e.pageX;
1162
- isDraging = true;
1163
-
1164
- // ** Fix for webkit cursor issue https://code.google.com/p/chromium/issues/detail?id=26723
1165
- _this.$outer.scrollLeft += 1;
1166
- _this.$outer.scrollLeft -= 1;
1154
+ _this.$outer.on('mousedown.lg', function(e) {
1155
+ if (!_this.$outer.hasClass('lg-zoomed') && !_this.lgBusy && !$(e.target).text()) {
1156
+ e.preventDefault();
1157
+ _this.manageSwipeClass();
1158
+ startCoords = e.pageX;
1159
+ isDraging = true;
1167
1160
 
1168
- // *
1161
+ // ** Fix for webkit cursor issue https://code.google.com/p/chromium/issues/detail?id=26723
1162
+ _this.$outer.scrollLeft += 1;
1163
+ _this.$outer.scrollLeft -= 1;
1169
1164
 
1170
- _this.$outer.removeClass('lg-grab').addClass('lg-grabbing');
1165
+ // *
1171
1166
 
1172
- _this.$el.trigger('onDragstart.lg');
1173
- }
1167
+ _this.$outer.removeClass('lg-grab').addClass('lg-grabbing');
1174
1168
 
1175
- }
1169
+ _this.$el.trigger('onDragstart.lg');
1176
1170
  }
1177
1171
  });
1178
1172
 
@@ -1263,6 +1257,10 @@
1263
1257
  }
1264
1258
 
1265
1259
  });
1260
+
1261
+ _this.$outer.on('mousemove.lg', function() {
1262
+ mousedown = false;
1263
+ });
1266
1264
 
1267
1265
  _this.$outer.on('mouseup.lg', function(e) {
1268
1266
 
@@ -1,6 +1,6 @@
1
- /*! lightgallery - v1.4.0 - 2017-06-04
1
+ /*! lightgallery - v1.6.7 - 2018-02-11
2
2
  * http://sachinchoolur.github.io/lightGallery/
3
- * Copyright (c) 2017 Sachin N; Licensed GPLv3 */
3
+ * Copyright (c) 2018 Sachin N; Licensed GPLv3 */
4
4
  .lg-outer.fb-comments .lg-img-wrap, .lg-outer.fb-comments .lg-video-cont {
5
5
  padding-right: 400px !important;
6
6
  }
@@ -1,6 +1,6 @@
1
- /*! lightgallery - v1.4.0 - 2017-06-04
1
+ /*! lightgallery - v1.6.7 - 2018-02-11
2
2
  * http://sachinchoolur.github.io/lightGallery/
3
- * Copyright (c) 2017 Sachin N; Licensed GPLv3 */
3
+ * Copyright (c) 2018 Sachin N; Licensed GPLv3 */
4
4
  .lg-css3.lg-zoom-in .lg-item {
5
5
  opacity: 0; }
6
6
  .lg-css3.lg-zoom-in .lg-item.lg-prev-slide {
@@ -1,6 +1,6 @@
1
- /*! lightgallery - v1.4.0 - 2017-06-04
1
+ /*! lightgallery - v1.6.7 - 2018-02-11
2
2
  * http://sachinchoolur.github.io/lightGallery/
3
- * Copyright (c) 2017 Sachin N; Licensed GPLv3 */
3
+ * Copyright (c) 2018 Sachin N; Licensed GPLv3 */
4
4
  @font-face {
5
5
  font-family: 'lg';
6
6
  src: font-url("lightgallery/lg.eot?n1z373");
@@ -402,6 +402,10 @@ body:not(.lg-from-hash) .lg-outer.lg-start-zoom .lg-item.lg-complete .lg-object
402
402
  z-index: 1080;
403
403
  cursor: pointer;
404
404
  }
405
+ .lg-outer .lg-has-iframe .lg-video {
406
+ -webkit-overflow-scrolling: touch;
407
+ overflow: auto;
408
+ }
405
409
  .lg-outer .lg-has-vimeo .lg-video-play {
406
410
  background: image-url("lightgallery/vimeo-play.png") no-repeat scroll 0 0 transparent;
407
411
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lightgallery-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - bsboris
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-22 00:00:00.000000000 Z
11
+ date: 2018-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: '12.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: '12.0'
41
41
  description:
42
42
  email:
43
43
  - bsboris@gmail.com
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  version: '0'
100
100
  requirements: []
101
101
  rubyforge_project:
102
- rubygems_version: 2.6.11
102
+ rubygems_version: 2.6.13
103
103
  signing_key:
104
104
  specification_version: 4
105
105
  summary: Rails wrapper for jQuery lightgallery