dist/js/glightbox.js
function setInlineContent(slide, data, callback) {
        var slideMedia = slide.querySelector('.gslide-media');
        var hash = data.href.split('#').pop().trim();

        var div = document.getElementById(hash);
        if (!div) {
            return false;
        }

        var cloned = div.cloneNode(true);

        cloned.style.height = data.height + 'px';
        cloned.style.maxWidth = data.width + 'px';
        addClass(cloned, 'ginlined-content');
        slideMedia.appendChild(cloned);

        if (utils.isFunction(callback)) {
            callback();
        }
        return;
    }
function setInlineContent(slide, data, callback) {
        var slideMedia = slide.querySelector('.gslide-media');
        var hash = data.href.split('#').pop().trim();

        var div = document.getElementById(hash);
        if (!div) {
            return false;
        }

        var cloned = div.cloneNode(true);

        cloned.style.height = data.height + 'px';
        cloned.style.maxWidth = data.width + 'px';
        addClass(cloned, 'ginlined-content');
        slideMedia.appendChild(cloned);

        if (utils.isFunction(callback)) {
            callback();
        }
        return;
    }
function setInlineContent ( slide , data , callback ) { var slideMedia = slide . querySelector ( '.gslide-media' ) ; var hash = data . href . split ( '#' ) . pop ( ) . trim ( ) ; var div = document . getElementById ( hash ) ; if ( ! div ) { return false ; } var cloned = div . cloneNode ( true ) ; cloned . style . height = data . height + 'px' ; cloned . style . maxWidth = data . width + 'px' ; addClass ( cloned , 'ginlined-content' ) ; slideMedia . appendChild ( cloned ) ; if ( utils . isFunction ( callback ) ) { callback ( ) ; } return ; }
Set slide inline content
we'll extend this to make http
requests using the fetch api
but for now we keep it simple

@param {node} slide
@param {object} data
@param {function} callback
Set slide inline content we ll extend this to make http requests using the fetch api but for now we keep it simple