Lines Matching refs:s

102         this.s = $.extend({}, defaults, options);
105 …if (this.s.dynamic && this.s.dynamicEl !== 'undefined' && this.s.dynamicEl.constructor === Array &…
124 if (this.s.slideEndAnimatoin) {
125 this.s.hideControlOnEnd = false;
129 if (this.s.dynamic) {
130 this.$items = this.s.dynamicEl;
132 if (this.s.selector === 'this') {
134 } else if (this.s.selector !== '') {
135 if (this.s.selectWithin) {
136 this.$items = $(this.s.selectWithin).find(this.s.selector);
138 this.$items = this.$el.find($(this.s.selector));
161 if (_this.s.preload > _this.$items.length) {
162 _this.s.preload = _this.$items.length;
167 if (_hash.indexOf('lg=' + this.s.galleryId) > 0) {
181 if (_this.s.dynamic) {
185 _this.index = _this.s.index || 0;
209 _this.index = _this.s.index || _this.$items.index(this);
235 if (_this.s.keyPress) {
248 if (_this.s.mousewheel) {
269 }, _this.s.hideBarsDelay);
286 $('.lg-backdrop').css('transition-duration', this.s.backdropDuration + 'ms');
294 if (this.s.controls && this.$items.length > 1) {
296 '<div class="lg-prev lg-icon">' + this.s.prevHtml + '</div>' +
297 '<div class="lg-next lg-icon">' + this.s.nextHtml + '</div>' +
301 if (this.s.appendSubHtmlTo === '.lg-sub-html') {
305 template = '<div class="lg-outer ' + this.s.addClass + ' ' + this.s.startClass + '">' +
306 '<div class="lg" style="width:' + this.s.width + '; height:' + this.s.height + '">' +
320 if (this.s.useLeft) {
324 this.s.mode = 'lg-slide';
347 this.s.speed = 0;
350 this.$outer.addClass(this.s.mode);
352 if (this.s.enableDrag && this.$items.length > 1) {
356 if (this.s.showAfterLoad) {
362 $inner.css('transition-timing-function', this.s.cssEasing);
363 $inner.css('transition-duration', this.s.speed + 'ms');
372 }, this.s.backdropDuration);
374 if (this.s.download) {
385 if (this.s.height !== '100%') {
387 var top = (wH - parseInt(this.s.height, 10)) / 2;
389 if (wH >= parseInt(this.s.height, 10)) {
427 if (this.s.dynamic) {
428 html = this.s.dynamicEl[index].html;
468 if (this.s.counter) {
469 …$(this.s.appendCounterTo).append('<div id="lg-counter"><span id="lg-counter-current">' + (parseInt…
481 if (this.s.dynamic) {
482 if (this.s.dynamicEl[index].subHtmlUrl) {
483 subHtmlUrl = this.s.dynamicEl[index].subHtmlUrl;
485 subHtml = this.s.dynamicEl[index].subHtml;
493 if (this.s.getCaptionFromTitleOrAlt && !subHtml) {
506 if (this.s.subHtmlSelectorRelative && !this.s.dynamic) {
517 if (this.s.appendSubHtmlTo === '.lg-sub-html') {
520 this.$outer.find(this.s.appendSubHtmlTo).load(subHtmlUrl);
522 this.$outer.find(this.s.appendSubHtmlTo).html(subHtml);
537 this.$outer.find(this.s.appendSubHtmlTo).addClass('lg-empty-html');
539 this.$outer.find(this.s.appendSubHtmlTo).removeClass('lg-empty-html');
553 for (i = 1; i <= this.s.preload; i++) {
561 for (j = 1; j <= this.s.preload; j++) {
610 if (_this.s.dynamic) {
612 if (_this.s.dynamicEl[index].poster) {
614 _poster = _this.s.dynamicEl[index].poster;
617 _html = _this.s.dynamicEl[index].html;
618 _src = _this.s.dynamicEl[index].src;
620 if (_this.s.dynamicEl[index].responsive) {
621 var srcDyItms = _this.s.dynamicEl[index].responsive.split(',');
625 _srcset = _this.s.dynamicEl[index].srcset;
626 _sizes = _this.s.dynamicEl[index].sizes;
651 if (_this.s.dynamic) {
652 if (_this.s.dynamicEl[index].iframe) {
664 …de.eq(index).prepend('<div class="lg-video-cont" style="max-width:' + _this.s.iframeMaxWidth + '">…
702 if (this.s.appendSubHtmlTo !== '.lg-sub-html') {
778 var _time = _this.lGalleryOn ? this.s.speed : 0;
782 if (this.s.download) {
784 if (_this.s.dynamic) {
785 …_src = _this.s.dynamicEl[index].downloadUrl !== false && (_this.s.dynamicEl[index].downloadUrl || …
806 if (this.s.appendSubHtmlTo === '.lg-sub-html') {
891 }, this.s.speed + 50);
896 }, this.s.speed);
899 _this.loadContent(index, true, _this.s.backdropDuration);
907 if (this.s.counter) {
921 var _loop = _this.s.loop;
936 } else if (_this.s.slideEndAnimatoin && !fromTouch) {
952 var _loop = _this.s.loop;
967 } else if (_this.s.slideEndAnimatoin && !fromTouch) {
996 if (_this.s.escKey === true && e.keyCode === 27) {
1021 if (!this.s.loop && this.s.hideControlOnEnd) {
1038 if (this.s.useLeft) {
1068 if (_this.s.mode !== 'lg-slide') {
1077 if ((distance < 0) && (Math.abs(distance) > _this.s.swipeThreshold)) {
1079 } else if ((distance > 0) && (Math.abs(distance) > _this.s.swipeThreshold)) {
1092 if (!_this.$outer.hasClass('lg-dragging') && _this.s.mode !== 'lg-slide') {
1095 }, _this.s.speed + 100);
1105 if (_this.s.enableSwipe && _this.isTouch && _this.doCss()) {
1144 if (_this.s.enableDrag && !_this.isTouch && _this.doCss()) {
1202 if (this.s.loop && this.$slide.length > 2) {
1245 if (_this.s.closable) {
1291 if (!_this.s.dynamic) {
1333 }, _this.s.backdropDuration + 50);