theme/public/lightgallery/js/lightgallery-all.js
function(element) {

        this.core = $(element).data('lightGallery');

        this.$el = $(element);

        // Execute only if items are above 1
        if (this.core.$items.length < 2) {
            return false;
        }

        this.core.s = $.extend({}, defaults, this.core.s);
        this.interval = false;

        // Identify if slide happened from autoplay
        this.fromAuto = true;

        // Identify if autoplay canceled from touch/drag
        this.canceledOnTouch = false;

        // save fourceautoplay value
        this.fourceAutoplayTemp = this.core.s.fourceAutoplay;

        // do not allow progress bar if browser does not support css3 transitions
        if (!this.core.doCss()) {
            this.core.s.progressBar = false;
        }

        this.init();

        return this;
    }
function(element) {

        this.core = $(element).data('lightGallery');

        this.$el = $(element);

        // Execute only if items are above 1
        if (this.core.$items.length < 2) {
            return false;
        }

        this.core.s = $.extend({}, defaults, this.core.s);
        this.interval = false;

        // Identify if slide happened from autoplay
        this.fromAuto = true;

        // Identify if autoplay canceled from touch/drag
        this.canceledOnTouch = false;

        // save fourceautoplay value
        this.fourceAutoplayTemp = this.core.s.fourceAutoplay;

        // do not allow progress bar if browser does not support css3 transitions
        if (!this.core.doCss()) {
            this.core.s.progressBar = false;
        }

        this.init();

        return this;
    }
function ( element ) { this . core = $ ( element ) . data ( 'lightGallery' ) ; this . $el = $ ( element ) ; // Execute only if items are above 1
 if ( this . core . $items . length < 2 ) { return false ; } this . core . s = $ . extend ( { } , defaults , this . core . s ) ; this . interval = false ; // Identify if slide happened from autoplay
 this . fromAuto = true ; // Identify if autoplay canceled from touch/drag
 this . canceledOnTouch = false ; // save fourceautoplay value
 this . fourceAutoplayTemp = this . core . s . fourceAutoplay ; // do not allow progress bar if browser does not support css3 transitions
 if ( ! this . core . doCss ( ) ) { this . core . s . progressBar = false ; } this . init ( ) ; return this ; }
Creates the autoplay plugin.
@param {object} element - lightGallery element
Creates the autoplay plugin .