<base href="http://chessboardjs.com/" />
<link rel="stylesheet" href="css/chessboard.css" />
<div id="board" style="width: 400px"></div>
<script src="js/json3.min.js"></script>
<script src="js/jquery-1.10.1.min.js"></script>
<script src="js/chessboard.js"></script>
<script>
var init = function() {
var board = ChessBoard('board', 'start');
}; // end init()
$(document).ready(init);
</script>
<base href="http://chessboardjs.com/" />
<link rel="stylesheet" href="css/chessboard.css" />
<div id="board" style="width: 400px"></div>
<script src="js/json3.min.js"></script>
<script src="js/jquery-1.10.1.min.js"></script>
<script src="js/chessboard.js"></script>
<script>
var init = function() {
var cfg2 = {
position: {
d4: 'wP',
d6: 'bK',
e4: 'wK'
}
};
var cfg = {
draggable: true,
dropOffBoard: 'snapback',
position: 'start'
};
var board = ChessBoard('board', cfg2);
}; // end init()
$(document).ready(init);
</script>
Hmm....mudah yaaaaa......yang sulit adalah main caturnyaaaaaaaaaaa......
Tidak ada komentar:
Posting Komentar