2014-02-18 18:45:54 +04:00
|
|
|
$(function() {
|
2014-03-04 23:27:57 +04:00
|
|
|
/* Sort a tournament table with tablesorter */
|
2014-03-22 12:32:54 +04:00
|
|
|
$('.tablesorter .opponent').addClass('{sorter: false}');
|
2014-03-04 23:27:57 +04:00
|
|
|
$('.tablesorter').tablesorter({
|
2014-03-22 16:31:04 +04:00
|
|
|
theme : 'blue',
|
|
|
|
widgets : ['zebra'],
|
|
|
|
sortReset : true,
|
|
|
|
sortRestart : true
|
2014-03-04 23:27:57 +04:00
|
|
|
});
|
2014-02-18 18:45:54 +04:00
|
|
|
})
|
|
|
|
|
|
|
|
/* Stylize pgn4web elements by Bootstrap */
|
|
|
|
function customFunctionOnPgnGameLoad() {
|
|
|
|
$('#GameSelSelect').addClass('form-control');
|
|
|
|
$('#autoplayButton').click(refreshButtonset);
|
|
|
|
}
|
|
|
|
function customFunctionOnMove() {
|
|
|
|
refreshButtonset();
|
2014-04-12 17:21:01 +04:00
|
|
|
|
|
|
|
/* Show move comment */
|
|
|
|
if (CurrentVar == 0 && (theObj = document.getElementById("GameMoveComment"))) {
|
|
|
|
theObj.innerHTML = '<span class="comment">' +
|
|
|
|
strippedMoveComment(CurrentPly, 0, true) + '</span>';
|
|
|
|
}
|
2014-02-18 18:45:54 +04:00
|
|
|
}
|
|
|
|
function refreshButtonset() {
|
|
|
|
$('#GameButtons input').addClass('btn btn-default');
|
|
|
|
}
|