Lines Matching refs:core

37         this.core = $(element).data('lightGallery');
40 this.core.s = $.extend({}, defaults, this.core.s);
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…
55 if (_this.core.s.videojs) {
57 …videojs(_this.core.$slide.eq(index).find('.lg-html5').get(0), _this.core.s.videojsOptions, functio…
66 _this.core.$slide.eq(index).find('.lg-html5').get(0).play();
72 _this.core.$el.on('onAferAppendSlide.lg.tm', function(event, index) {
73 … _this.core.$slide.eq(index).find('.lg-video-cont').css('max-width', _this.core.s.videoMaxWidth);
90 … $el.find('.lg-video').append(_this.loadVideo(_src, '', false, _this.core.index, _html));
93 if (_this.core.s.videojs) {
95 …videojs(_this.core.$slide.eq(_this.core.index).find('.lg-html5').get(0), _this.core.s.videojsOptio…
102 … _this.core.$slide.eq(_this.core.index).find('.lg-html5').get(0).play();
108 if (_this.core.s.dynamic) {
110 _src = _this.core.s.dynamicEl[_this.core.index].src;
111 _html = _this.core.s.dynamicEl[_this.core.index].html;
117 …_src = _this.core.$items.eq(_this.core.index).attr('href') || _this.core.$items.eq(_this.core.inde…
118 _html = _this.core.$items.eq(_this.core.index).attr('data-html');
154 if (_this.core.s.videojs) {
171 …_this.core.doCss() && _this.core.$items.length > 1 && ((_this.core.s.enableSwipe && _this.core.isT…
172 _this.core.$el.on('onSlideClick.lg.tm', function() {
173 var $el = _this.core.$slide.eq(_this.core.index);
179 _this.core.$slide.on('click.lg', function() {
184 _this.core.$el.on('onBeforeSlide.lg.tm', function(event, prevIndex, index) {
186 var $videoSlide = _this.core.$slide.eq(prevIndex);
204 if (_this.core.s.videojs) {
218 if (_this.core.s.dynamic) {
219 _src = _this.core.s.dynamicEl[index].src;
221 … _src = _this.core.$items.eq(index).attr('href') || _this.core.$items.eq(index).attr('data-src');
225 var _isVideo = _this.core.isVideo(_src, index) || {};
227 _this.core.$outer.addClass('lg-hide-download');
234 _this.core.$el.on('onAfterSlide.lg.tm', function(event, prevIndex) {
235 _this.core.$slide.eq(prevIndex).removeClass('lg-video-playing');
243 var isVideo = this.core.isVideo(src, index) || {};
257 if (this.core.s.youtubePlayerParams) {
258 a = a + '&' + $.param(this.core.s.youtubePlayerParams);
266 if (this.core.s.vimeoPlayerParams) {
267 a = a + '&' + $.param(this.core.s.vimeoPlayerParams);
275 if (this.core.s.dailymotionPlayerParams) {
276 a = a + '&' + $.param(this.core.s.dailymotionPlayerParams);
292 if (this.core.s.vkPlayerParams) {
293 a = a + '&' + $.param(this.core.s.vkPlayerParams);