dist/js/glightbox.js
function addClass(node, name) {
        if (hasClass(node, name)) {
            return;
        }
        if (node.classList) {
            node.classList.add(name);
        } else {
            node.className += " " + name;
        }
    }
function addClass(node, name) {
        if (hasClass(node, name)) {
            return;
        }
        if (node.classList) {
            node.classList.add(name);
        } else {
            node.className += " " + name;
        }
    }
function addClass ( node , name ) { if ( hasClass ( node , name ) ) { return ; } if ( node . classList ) { node . classList . add ( name ) ; } else { node . className += " " + name ; } }
Add element class

@param {node} element
@param {string} class name
Add element class