25 lines
566 B
JavaScript
25 lines
566 B
JavaScript
|
/* Fix the position of chess board while scrolling */
|
||
|
$(function() {
|
||
|
if (obj = $('#GameWrapper')) {
|
||
|
obj.affix({
|
||
|
offset: {
|
||
|
top: function () {
|
||
|
return obj.parent().offset().top;
|
||
|
}
|
||
|
}
|
||
|
})
|
||
|
}
|
||
|
})
|
||
|
|
||
|
/* Stylize pgn4web elements by Bootstrap */
|
||
|
function customFunctionOnPgnGameLoad() {
|
||
|
$('#GameSelSelect').addClass('form-control');
|
||
|
$('#autoplayButton').click(refreshButtonset);
|
||
|
}
|
||
|
function customFunctionOnMove() {
|
||
|
refreshButtonset();
|
||
|
}
|
||
|
function refreshButtonset() {
|
||
|
$('#GameButtons input').addClass('btn btn-default');
|
||
|
}
|