js/pgnvjs.js
/**
     * Inserts an element after targetElement
     * @param {*} newElement the element to insert
     * @param {*} targetElement the element after to insert
     */
Inserts an element after targetElement
@param {*} newElement the element to insert
@param {*} targetElement the element after to insert
Inserts an element after targetElement @param { * } newElement the element to insert @param { * } targetElement the element after to insert
function insertAfter(newElement,targetElement) {
        var parent = targetElement.parentNode;
        if (parent.lastChild == targetElement) {
            parent.appendChild(newElement);
        } else {
            parent.insertBefore(newElement, targetElement.nextSibling);
        }
    }
function insertAfter ( newElement , targetElement ) { var parent = targetElement . parentNode ; if ( parent . lastChild == targetElement ) { parent . appendChild ( newElement ) ; } else { parent . insertBefore ( newElement , targetElement . nextSibling ) ; } }
Inserts an element after targetElement
 @param {*} newElement the element to insert
 @param {*} targetElement the element after to insert
Inserts an element after targetElement @param { * } newElement the element to insert @param { * } targetElement the element after to insert