cm-chessboard 8.12.1 → 8.12.3
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/.claude/settings.local.json +3 -1
- package/README.md +6 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -47,7 +47,7 @@ The core of cm-chessboard is small, fast and reduced to the essentials. You can
|
|
|
47
47
|
#### Step 2a: Include the CSS file
|
|
48
48
|
|
|
49
49
|
```html
|
|
50
|
-
<link rel="stylesheet" href="./node_modules/cm-chessboard/assets/
|
|
50
|
+
<link rel="stylesheet" href="./node_modules/cm-chessboard/assets/chessboard.css">
|
|
51
51
|
```
|
|
52
52
|
|
|
53
53
|
- Some extensions, like "[Markers](https://shaack.com/projekte/cm-chessboard/examples/extensions/markers-extension.html)", "[Promotion Dialog](https://shaack.com/projekte/cm-chessboard/examples/extensions/promotion-dialog-extension.html)" or "[Arrows](https://shaack.com/projekte/cm-chessboard/examples/extensions/arrows-extension.html)" need additional CSS. See the examples.
|
|
@@ -84,7 +84,12 @@ You can also copy the `assets` folder from `cm-chessboard/assets` to your projec
|
|
|
84
84
|
|
|
85
85
|
To enable the user to move the pieces, you have to enable the move input.
|
|
86
86
|
|
|
87
|
+
Markers are provided by the [Markers extension](https://shaack.com/projekte/cm-chessboard/examples/extensions/markers-extension.html) (not part of the core), so you need to import and enable it.
|
|
88
|
+
|
|
87
89
|
```javascript
|
|
90
|
+
import {Chessboard, FEN, INPUT_EVENT_TYPE} from "./path/to/Chessboard.js"
|
|
91
|
+
import {Markers} from "./path/to/extensions/markers/Markers.js"
|
|
92
|
+
|
|
88
93
|
const board = new Chessboard(document.getElementById("board"), {
|
|
89
94
|
position: FEN.start,
|
|
90
95
|
assetsUrl: "../assets/",
|