dist/js/pgnvjs.js
// Utility function for generating buttons divs
Utility function for generating buttons divs
Utility function for generating buttons divs
function addButton(pair, buttonDiv) {
            var l_theme = (['green', 'blue'].indexOf(theme) >= 0) ? theme : 'default';
            var button = createEle("i", buttonsId + pair[0], "button fa " + pair[1], l_theme, buttonDiv);
            var title = i18next.t("buttons:" + pair[0], {lng: that.configuration.locale});
            document.getElementById(buttonsId + pair[0]).setAttribute("title", title);
            return button;
        }
function addButton ( pair , buttonDiv ) { var l_theme = ( [ 'green' , 'blue' ] . indexOf ( theme ) >= 0 ) ? theme : 'default' ; var button = createEle ( "i" , buttonsId + pair [ 0 ] , "button fa " + pair [ 1 ] , l_theme , buttonDiv ) ; var title = i18next . t ( "buttons:" + pair [ 0 ] , { lng : that . configuration . locale } ) ; document . getElementById ( buttonsId + pair [ 0 ] ) . setAttribute ( "title" , title ) ; return button ; }
Utility function for generating buttons divs
Utility function for generating buttons divs