Lines Matching refs:_this

73         var _this = this;
76 if (_this.core.s.autoplayControls) {
77 _this.controls();
81 if (_this.core.s.progressBar) {
82_this.core.$outer.find('.lg').append('<div class="lg-progress-bar"><div class="lg-progress"></div>…
86 _this.progress();
89 if (_this.core.s.autoplay) {
90 _this.startlAuto();
94 _this.$el.on('onDragstart.lg.tm touchstart.lg.tm', function() {
95 if (_this.interval) {
96 _this.cancelAuto();
97 _this.canceledOnTouch = true;
102 _this.$el.on('onDragend.lg.tm touchend.lg.tm onSlideClick.lg.tm', function() {
103 if (!_this.interval && _this.canceledOnTouch) {
104 _this.startlAuto();
105 _this.canceledOnTouch = false;
113 var _this = this;
117 _this.$el.on('onBeforeSlide.lg.tm', function() {
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');
123 if (_this.interval) {
127 … _$progress.css('transition', 'width ' + (_this.core.s.speed + _this.core.s.pause) + 'ms ease 0s');
134 if (!_this.fromAuto && !_this.core.s.fourceAutoplay) {
135 _this.cancelAuto();
138 _this.fromAuto = false;
145 var _this = this;
151 _this.core.$outer.find('.lg-autoplay-button').on('click.lg', function() {
152 if ($(_this.core.$outer).hasClass('lg-show-autoplay')) {
153 _this.cancelAuto();
154 _this.core.s.fourceAutoplay = false;
156 if (!_this.interval) {
157 _this.startlAuto();
158 _this.core.s.fourceAutoplay = _this.fourceAutoplayTemp;
166 var _this = this;
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');
172 _this.interval = setInterval(function() {
173 if (_this.core.index + 1 < _this.core.$items.length) {
174 _this.core.index++;
176 _this.core.index = 0;
179 _this.fromAuto = true;
180 _this.core.slide(_this.core.index, false, false, 'next');
181 }, _this.core.s.speed + _this.core.s.pause);