$(function() { /* Sort a tournament table with tablesorter */ $('.tablesorter .opponent').addClass('{sorter: false}'); $('.tablesorter').tablesorter({ theme : 'blue', widgets : ['zebra'], sortReset : true, sortRestart : true }); }) /* Stylize pgn4web elements by Bootstrap */ function customFunctionOnPgnGameLoad() { $('#GameSelSelect').addClass('form-control'); $('#autoplayButton').click(refreshButtonset); } function customFunctionOnMove() { refreshButtonset(); /* Show move comment */ if (CurrentVar == 0 && (theObj = document.getElementById("GameMoveComment"))) { theObj.innerHTML = '' + strippedMoveComment(CurrentPly, 0, true) + ''; } } function refreshButtonset() { $('#GameButtons input').addClass('btn btn-default'); }