js/pgnvjs.js
/**
     * Adds an event listener to the DOM element.
     */
Adds an event listener to the DOM element.
Adds an event listener to the DOM element .
function addEventListener(elementOrId, event, func) {
        let ele = utils.pvIsElement(elementOrId) ? elementOrId : document.getElementById(elementOrId);
        if (ele === null) return;
        ele.addEventListener(event, func);
    }
function addEventListener ( elementOrId , event , func ) { let ele = utils . pvIsElement ( elementOrId ) ? elementOrId : document . getElementById ( elementOrId ) ; if ( ele === null ) return ; ele . addEventListener ( event , func ) ; }
Adds an event listener to the DOM element.
Adds an event listener to the DOM element .