js/pgnvjs.js
// Utility function for generating general HTML elements with id, class (with theme)
Utility function for generating general HTML elements with id, class (with theme)
Utility function for generating general HTML elements with id class ( with theme )
function createEle(kind, id, clazz, my_theme, father) {
        var ele = document.createElement(kind);
        if (id) { ele.setAttribute("id", id); }
        if (clazz) {
            if (my_theme) {
                ele.setAttribute("class", my_theme + " " + clazz);
            } else {
                ele.setAttribute("class", clazz);
            }
        }
        if (father) {
            father.appendChild(ele);
        }
        return ele;
    }
function createEle ( kind , id , clazz , my_theme , father ) { var ele = document . createElement ( kind ) ; if ( id ) { ele . setAttribute ( "id" , id ) ; } if ( clazz ) { if ( my_theme ) { ele . setAttribute ( "class" , my_theme + " " + clazz ) ; } else { ele . setAttribute ( "class" , clazz ) ; } } if ( father ) { father . appendChild ( ele ) ; } return ele ; }
Utility function for generating general HTML elements with id, class (with theme)
Utility function for generating general HTML elements with id class ( with theme )