app_js/glightbox/src/js/glightbox.js
/**
     * Close Lightbox
     * closes the lightbox and removes the slides
     * and some classes
     */
Close Lightbox
closes the lightbox and removes the slides
and some classes
Close Lightbox closes the lightbox and removes the slides and some classes
close() {
        if (this.closing) {
            return false;
        }
        this.closing = true;
        this.stopSlideVideo(this.activeSlide)
        addClass(this.modal, 'glightbox-closing')
        animateElement(this.overlay, (this.settings.openEffect == 'none' ? 'none' : this.settings.cssEfects.fade.out))
        animateElement(this.activeSlide, this.settings.closeEffect, () => {
            this.activeSlide = null;
            this.prevActiveSlideIndex = null;
            this.prevActiveSlide = null;
            this.built = false;
            if (this.events) {
                for (let key in this.events) {
                    if (this.events.hasOwnProperty(key)) {
                        this.events[key].destroy()
                    }
                }
                this.events = null;
            }
            const body = document.body;
            removeClass(html, 'glightbox-open')
            removeClass(body, 'glightbox-open touching gdesc-open glightbox-touch glightbox-mobile')
            body.style.width = '';
            this.modal.parentNode.removeChild(this.modal)
            if (utils.isFunction(this.settings.onClose)) {
                this.settings.onClose();
            }
            this.closing = null;
        });
    }
close ( ) { if ( this . closing ) { return false ; } this . closing = true ; this . stopSlideVideo ( this . activeSlide ) addClass ( this . modal , 'glightbox-closing' ) animateElement ( this . overlay , ( this . settings . openEffect == 'none' ? 'none' : this . settings . cssEfects . fade . out ) ) animateElement ( this . activeSlide , this . settings . closeEffect , ( ) => { this . activeSlide = null ; this . prevActiveSlideIndex = null ; this . prevActiveSlide = null ; this . built = false ; if ( this . events ) { for ( let key in this . events ) { if ( this . events . hasOwnProperty ( key ) ) { this . events [ key ] . destroy ( ) } } this . events = null ; } const body = document . body ; removeClass ( html , 'glightbox-open' ) removeClass ( body , 'glightbox-open touching gdesc-open glightbox-touch glightbox-mobile' ) body . style . width = '' ; this . modal . parentNode . removeChild ( this . modal ) if ( utils . isFunction ( this . settings . onClose ) ) { this . settings . onClose ( ) ; } this . closing = null ; } ) ; }
Close Lightbox
 closes the lightbox and removes the slides
 and some classes
Close Lightbox closes the lightbox and removes the slides and some classes