Lines Matching refs:core

41         this.core = $(element).data('lightGallery');
46 if (this.core.$items.length < 2) {
50 this.core.s = $.extend({}, defaults, this.core.s);
60 this.fourceAutoplayTemp = this.core.s.fourceAutoplay;
63 if (!this.core.doCss()) {
64 this.core.s.progressBar = false;
76 if (_this.core.s.autoplayControls) {
81 if (_this.core.s.progressBar) {
82 …_this.core.$outer.find('.lg').append('<div class="lg-progress-bar"><div class="lg-progress"></div>…
89 if (_this.core.s.autoplay) {
120 if (_this.core.s.progressBar && _this.fromAuto) {
121 _$progressBar = _this.core.$outer.find('.lg-progress-bar');
122 _$progress = _this.core.$outer.find('.lg-progress');
127 … _$progress.css('transition', 'width ' + (_this.core.s.speed + _this.core.s.pause) + 'ms ease 0s');
134 if (!_this.fromAuto && !_this.core.s.fourceAutoplay) {
149 $(this.core.s.appendAutoplayControlsTo).append(_html);
151 _this.core.$outer.find('.lg-autoplay-button').on('click.lg', function() {
152 if ($(_this.core.$outer).hasClass('lg-show-autoplay')) {
154 _this.core.s.fourceAutoplay = false;
158 _this.core.s.fourceAutoplay = _this.fourceAutoplayTemp;
168 …_this.core.$outer.find('.lg-progress').css('transition', 'width ' + (_this.core.s.speed + _this.co…
169 _this.core.$outer.addClass('lg-show-autoplay');
170 _this.core.$outer.find('.lg-progress-bar').addClass('lg-start');
173 if (_this.core.index + 1 < _this.core.$items.length) {
174 _this.core.index++;
176 _this.core.index = 0;
180 _this.core.slide(_this.core.index, false, false, 'next');
181 }, _this.core.s.speed + _this.core.s.pause);
188 this.core.$outer.find('.lg-progress').removeAttr('style');
189 this.core.$outer.removeClass('lg-show-autoplay');
190 this.core.$outer.find('.lg-progress-bar').removeClass('lg-start');
196 this.core.$outer.find('.lg-progress-bar').remove();