cm-chessboard 8.3.0 → 8.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -60,13 +60,14 @@ The core of cm-chessboard is small, fast and reduced to the essentials. You can
|
|
|
60
60
|
#### Step 2c: Create the chessboard in your JavaScript code.
|
|
61
61
|
|
|
62
62
|
```html
|
|
63
|
+
|
|
63
64
|
<script type="module">
|
|
64
|
-
|
|
65
|
+
import {Chessboard, FEN} from "./path/to/Chessboard.js"
|
|
65
66
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
const board = new Chessboard(document.getElementById("board"), {
|
|
68
|
+
position: FEN.start,
|
|
69
|
+
assetsUrl: "./path/to/assets/" // wherever you copied the assets folder to, could also be in the node_modules folder
|
|
70
|
+
})
|
|
70
71
|
</script>
|
|
71
72
|
```
|
|
72
73
|
|