Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 52 additions & 52 deletions data/releases.json
Original file line number Diff line number Diff line change
@@ -1,53 +1,53 @@
[
"-----------------------------------------------------------------",
{
"released":false,
"version":"0.3.1",
"date":"10 Aug 2013",
"changes":[
"Orientation methods now return current orientation (GitHub Issue #64)"
],
"files":[
{ "name":"chessboardjs-0.3.1.zip", "size":"44.6 KB" }
]
},
"-----------------------------------------------------------------",
{
"version":"0.3.0",
"date":"10 Aug 2013",
"changes":[
"Added appearSpeed animation config",
"Added onSnapbackEnd event",
"Added onMoveEnd event"
],
"files":[
{ "name":"chessboardjs-0.3.0.zip", "size":"44.6 KB" }
]
},
"-----------------------------------------------------------------",
{
"version":"0.2.0",
"date":"05 Aug 2013",
"changes":[
"Added onMouseoverSquare and onMouseoutSquare events",
"Added onSnapEnd event",
"Added square code as CSS class on the squares",
"chess.js integration examples"
],
"files":[
{ "name":"chessboardjs-0.2.0.zip", "size":"44.6 KB" }
]
},
"-----------------------------------------------------------------",
{
"version":"0.1.0",
"date":"21 Jul 2013",
"changes":[
"Initial release"
],
"files":[
{ "name":"chessboard-0.1.0.zip", "size":"44.0 KB" }
]
},
"-----------------------------------------------------------------"
[
"-----------------------------------------------------------------",
{
"released":false,
"version":"0.3.1",
"date":"10 Aug 2013",
"changes":[
"Orientation methods now return current orientation (GitHub Issue #64)"
],
"files":[
{ "name":"chessboardjs-0.3.1.zip", "size":"44.6 KB" }
]
},
"-----------------------------------------------------------------",
{
"version":"0.3.0",
"date":"10 Aug 2013",
"changes":[
"Added appearSpeed animation config",
"Added onSnapbackEnd event",
"Added onMoveEnd event"
],
"files":[
{ "name":"chessboardjs-0.3.0.zip", "size":"44.6 KB" }
]
},
"-----------------------------------------------------------------",
{
"version":"0.2.0",
"date":"05 Aug 2013",
"changes":[
"Added onMouseoverSquare and onMouseoutSquare events",
"Added onSnapEnd event",
"Added square code as CSS class on the squares",
"chess.js integration examples"
],
"files":[
{ "name":"chessboardjs-0.2.0.zip", "size":"44.6 KB" }
]
},
"-----------------------------------------------------------------",
{
"version":"0.1.0",
"date":"21 Jul 2013",
"changes":[
"Initial release"
],
"files":[
{ "name":"chessboard-0.1.0.zip", "size":"44.0 KB" }
]
},
"-----------------------------------------------------------------"
]
8 changes: 4 additions & 4 deletions examples/1000-empty-board.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
1000

===== Name
Empty Board
Empty Board

===== Description
Chessboard.js initializes to an empty board with no second argument.

===== HTML
<div id="myBoard" style="width: 400px"></div>

===== JS
var board = Chessboard('myBoard')
10 changes: 5 additions & 5 deletions examples/1001-start-position.example
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
===== id
1001

===== Name
Start Position
===== Name
Start Position

===== Description
Pass <code class="js string">'start'</code> as the second argument to initialize
the board to the start position.

===== HTML
<div id="myBoard" style="width: 400px"></div>

===== JS
var board = Chessboard('myBoard', 'start')
10 changes: 5 additions & 5 deletions examples/1002-fen.example
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
===== id
1002

===== Name
FEN String
===== Name
FEN String

===== Description
Pass a <a href="docs.html#fen_string">FEN String</a> as the second argument to
initialize the board to a specific position.

===== HTML
<div id="myBoard" style="width: 400px"></div>

===== JS
var ruyLopez = 'r1bqkbnr/pppp1ppp/2n5/1B2p3/4P3/5N2/PPPP1PPP/RNBQK2R'
var board = Chessboard('myBoard', ruyLopez)
20 changes: 10 additions & 10 deletions examples/1003-position-object.example
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
===== id
1003

===== Name
Position Object
===== Description
Pass a <a href="docs.html#position_object">Position Object</a> as the second argument to initialize the board to a specific position.
===== HTML
<div id="myBoard" style="width: 400px"></div>
===== JS
===== Name
Position Object

===== Description
Pass a <a href="docs.html#position_object">Position Object</a> as the second argument to initialize the board to a specific position.

===== HTML
<div id="myBoard" style="width: 400px"></div>

===== JS
var position = {
d6: 'bK',
d4: 'wP',
Expand Down
18 changes: 9 additions & 9 deletions examples/1004-multiple-boards.example
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
===== id
1004

===== Name
Multiple Boards
===== Description
You can have multiple boards on the same page.
===== Name
Multiple Boards

===== Description
You can have multiple boards on the same page.

===== CSS
.small-board {
display: inline-block;
margin-right: 5px;
width: 200px;
}

===== HTML
<div id="board1" class="small-board"></div>
<div id="board2" class="small-board"></div>
<div id="board3" class="small-board"></div>
===== JS

===== JS
var board1 = Chessboard('board1', {
position: 'start',
showNotation: false
Expand Down
26 changes: 13 additions & 13 deletions examples/2000-config-position.example
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
===== id
2000

===== Name
Start Position
===== Description
Set the <a href="docs.html#config:position"><code class="js plain">position</code></a> property to <code class="js string">'start'</code> to initialize the board to the start position.
===== HTML
<div id="myBoard" style="width: 400px"></div>
===== JS
var config = {
position: 'start'
===== Name
Start Position

===== Description
Set the <a href="docs.html#config:position"><code class="js plain">position</code></a> property to <code class="js string">'start'</code> to initialize the board to the start position.

===== HTML
<div id="myBoard" style="width: 400px"></div>

===== JS
var config = {
position: 'start'
}
var board = Chessboard('myBoard', config)
var board = Chessboard('myBoard', config)
28 changes: 14 additions & 14 deletions examples/2001-config-orientation.example
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
===== id
2001

===== Name
Orientation
===== Description
Use the <a href="docs.html#config:orientation"><code class="js plain">orientation</code></a> property to set board orientation.
===== HTML
<div id="myBoard" style="width: 400px"></div>
===== JS
var config = {
orientation: 'black',
position: 'start'
===== Name
Orientation

===== Description
Use the <a href="docs.html#config:orientation"><code class="js plain">orientation</code></a> property to set board orientation.

===== HTML
<div id="myBoard" style="width: 400px"></div>

===== JS
var config = {
orientation: 'black',
position: 'start'
}
var board = Chessboard('myBoard', config)
var board = Chessboard('myBoard', config)
28 changes: 14 additions & 14 deletions examples/2002-config-notation.example
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
===== id
2002

===== Name
Notation
===== Description
Use the <a href="docs.html#config:showNotation"><code class="js plain">showNotation</code></a> property to turn board notation on or off.
===== HTML
<div id="myBoard" style="width: 400px"></div>
===== JS
var config = {
showNotation: false,
position: 'start'
===== Name
Notation

===== Description
Use the <a href="docs.html#config:showNotation"><code class="js plain">showNotation</code></a> property to turn board notation on or off.

===== HTML
<div id="myBoard" style="width: 400px"></div>

===== JS
var config = {
showNotation: false,
position: 'start'
}
var board = Chessboard('myBoard', config)
var board = Chessboard('myBoard', config)
30 changes: 15 additions & 15 deletions examples/2003-draggable-snapback.example
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
===== id
2003

===== Name
Draggable Snapback
===== Description
Set <a href="docs.html#config:draggable"><code class="js plain">draggable</code></a> to <code class='js keyword'>true</code> to allow drag and drop of pieces. Pieces will return to their original square when dropped off the board (ie: the default for <a href="docs.html#config:dropOffBoard"><code class="js plain">dropOffBoard</code></a> is <code class="js string">'snapback'</code>).
===== HTML
<div id="myBoard" style="width: 400px"></div>
===== JS
var config = {
draggable: true,
dropOffBoard: 'snapback', // this is the default
position: 'start'
===== Name
Draggable Snapback

===== Description
Set <a href="docs.html#config:draggable"><code class="js plain">draggable</code></a> to <code class='js keyword'>true</code> to allow drag and drop of pieces. Pieces will return to their original square when dropped off the board (ie: the default for <a href="docs.html#config:dropOffBoard"><code class="js plain">dropOffBoard</code></a> is <code class="js string">'snapback'</code>).

===== HTML
<div id="myBoard" style="width: 400px"></div>

===== JS
var config = {
draggable: true,
dropOffBoard: 'snapback', // this is the default
position: 'start'
}
var board = Chessboard('myBoard', config)
var board = Chessboard('myBoard', config)
20 changes: 10 additions & 10 deletions examples/3000-get-position.example
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
===== id
3000

===== Name
Get Position
===== Description
Use the <a href="docs.html#methods:position"><code class="js plain">position</code></a> and <a href="docs.html#methods:fen"><code class="js plain">fen</code></a> methods to retrieve the current position of the board.
===== HTML
<div id="myBoard" style="width: 400px"></div>
===== Name
Get Position

===== Description
Use the <a href="docs.html#methods:position"><code class="js plain">position</code></a> and <a href="docs.html#methods:fen"><code class="js plain">fen</code></a> methods to retrieve the current position of the board.

===== HTML
<div id="myBoard" style="width: 400px"></div>
<button id="showPositionBtn">Show position in console</button>
===== JS

===== JS
var config = {
draggable: true,
position: 'start'
Expand Down
Loading