js/pgnvjs.js
/**
     * Adds a class to an element.
     */
Adds a class to an element.
Adds a class to an element .
function addClass(elementOrId, className) {
        let ele = utils.pvIsElement(elementOrId) ? elementOrId : document.getElementById(elementOrId);
        if (! ele) return;
        if (ele.classList) {
            ele.classList.add(className);
        } else {
            ele.className += ' ' + className;
        }
    }
function addClass ( elementOrId , className ) { let ele = utils . pvIsElement ( elementOrId ) ? elementOrId : document . getElementById ( elementOrId ) ; if ( ! ele ) return ; if ( ele . classList ) { ele . classList . add ( className ) ; } else { ele . className += ' ' + className ; } }
Adds a class to an element.
Adds a class to an element .