Skip to content

Commit

Permalink
Update Video module
Browse files Browse the repository at this point in the history
  • Loading branch information
sachinchoolur committed May 1, 2018
1 parent ee7f7fd commit bd73a66
Show file tree
Hide file tree
Showing 11 changed files with 37 additions and 15 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lightgallery",
"version": "1.6.9",
"version": "1.6.10",
"description": "A lightweight, customizable, modular, responsive, lightbox gallery plugin for jQuery.",
"main": [
"dist/js/lightgallery.min.js",
Expand Down
2 changes: 1 addition & 1 deletion dist/css/lg-fb-comment-box.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! lightgallery - v1.6.9 - 2018-04-03
/*! lightgallery - v1.6.10 - 2018-05-01
* http://sachinchoolur.github.io/lightGallery/
* Copyright (c) 2018 Sachin N; Licensed GPLv3 */
.lg-outer.fb-comments .lg-img-wrap, .lg-outer.fb-comments .lg-video-cont {
Expand Down
2 changes: 1 addition & 1 deletion dist/css/lg-transitions.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/lightgallery.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 14 additions & 3 deletions dist/js/lightgallery-all.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*! lightgallery - v1.6.9 - 2018-04-03
/*! lightgallery - v1.6.10 - 2018-05-01
* http://sachinchoolur.github.io/lightGallery/
* Copyright (c) 2018 Sachin N; Licensed GPLv3 */
/*! lightgallery - v1.6.9 - 2018-04-03
/*! lightgallery - v1.6.10 - 2018-05-01
* http://sachinchoolur.github.io/lightGallery/
* Copyright (c) 2018 Sachin N; Licensed GPLv3 */
(function (root, factory) {
Expand Down Expand Up @@ -2272,7 +2272,7 @@

}));

/*! lg-video - v1.2.1 - 2018-03-08
/*! lg-video - v1.2.2 - 2018-05-01
* http://sachinchoolur.github.io/lightGallery
* Copyright (c) 2018 Sachin N; Licensed GPLv3 */

Expand Down Expand Up @@ -2350,6 +2350,17 @@
_this.core.$el.on('onAfterSlide.lg.tm', function(event, prevIndex) {
_this.core.$slide.eq(prevIndex).removeClass('lg-video-playing');
});

if (_this.core.s.autoplayFirstVideo) {
_this.core.$el.on('onAferAppendSlide.lg.tm', function (e, index) {
if (!_this.core.lGalleryOn) {
var $el = _this.core.$slide.eq(index);
setTimeout(function () {
_this.loadVideoOnclick($el);
}, 100);
}
});
}
};

Video.prototype.loadVideo = function(src, addClass, noPoster, index, html) {
Expand Down
4 changes: 2 additions & 2 deletions dist/js/lightgallery-all.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/lightgallery.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! lightgallery - v1.6.9 - 2018-04-03
/*! lightgallery - v1.6.10 - 2018-05-01
* http://sachinchoolur.github.io/lightGallery/
* Copyright (c) 2018 Sachin N; Licensed GPLv3 */
(function (root, factory) {
Expand Down
2 changes: 1 addition & 1 deletion dist/js/lightgallery.min.js

Large diffs are not rendered by default.

13 changes: 12 additions & 1 deletion modules/lg-video.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! lg-video - v1.2.1 - 2018-03-08
/*! lg-video - v1.2.2 - 2018-05-01
* http://sachinchoolur.github.io/lightGallery
* Copyright (c) 2018 Sachin N; Licensed GPLv3 */

Expand Down Expand Up @@ -76,6 +76,17 @@
_this.core.$el.on('onAfterSlide.lg.tm', function(event, prevIndex) {
_this.core.$slide.eq(prevIndex).removeClass('lg-video-playing');
});

if (_this.core.s.autoplayFirstVideo) {
_this.core.$el.on('onAferAppendSlide.lg.tm', function (e, index) {
if (!_this.core.lGalleryOn) {
var $el = _this.core.$slide.eq(index);
setTimeout(function () {
_this.loadVideoOnclick($el);
}, 100);
}
});
}
};

Video.prototype.loadVideo = function(src, addClass, noPoster, index, html) {
Expand Down
4 changes: 2 additions & 2 deletions modules/lg-video.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lightgallery",
"version": "1.6.9",
"version": "1.6.10",
"description": "A lightweight, customizable, modular, responsive, lightbox gallery plugin for jQuery.",
"keywords": [
"jquery-plugin",
Expand Down

0 comments on commit bd73a66

Please sign in to comment.