cm-chessboard 7.3.8 → 7.3.9
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/package.json
CHANGED
|
@@ -119,9 +119,6 @@ class MovePieceForm {
|
|
|
119
119
|
this.inputFrom = this.form.querySelector(".input-from")
|
|
120
120
|
this.inputTo = this.form.querySelector(".input-to")
|
|
121
121
|
this.moveButton = this.form.querySelector(".button-move")
|
|
122
|
-
if (extension.props.visuallyHidden) {
|
|
123
|
-
this.movePieceFormContainer.classList.add("visually-hidden")
|
|
124
|
-
}
|
|
125
122
|
this.form.addEventListener("submit", (evt) => {
|
|
126
123
|
evt.preventDefault()
|
|
127
124
|
if (this.chessboard.view.moveInputCallback({
|
|
@@ -165,9 +162,6 @@ class BoardAsTable {
|
|
|
165
162
|
this.boardAsTableContainer = Utils.createDomElement(`<div><h3 id="hl_table_${this.chessboard.id}">${extension.t.board_as_table}</h3><div class="table"></div></div>`)
|
|
166
163
|
this.boardAsTable = this.boardAsTableContainer.querySelector(".table")
|
|
167
164
|
container.appendChild(this.boardAsTableContainer)
|
|
168
|
-
if (this.chessboard.props.visuallyHidden) {
|
|
169
|
-
this.boardAsTableContainer.classList.add("visually-hidden")
|
|
170
|
-
}
|
|
171
165
|
extension.registerExtensionPoint(EXTENSION_POINT.positionChanged, () => {
|
|
172
166
|
this.redraw()
|
|
173
167
|
})
|
|
@@ -217,9 +211,6 @@ class PiecesAsList {
|
|
|
217
211
|
this.piecesListContainer = Utils.createDomElement(`<div><h3 id="hl_lists_${this.chessboard.id}">${extension.t.pieces_lists}</h3><div class="list"></div></div>`)
|
|
218
212
|
this.piecesList = this.piecesListContainer.querySelector(".list")
|
|
219
213
|
container.appendChild(this.piecesListContainer)
|
|
220
|
-
if (extension.props.visuallyHidden) {
|
|
221
|
-
this.piecesListContainer.classList.add("visually-hidden")
|
|
222
|
-
}
|
|
223
214
|
extension.registerExtensionPoint(EXTENSION_POINT.positionChanged, () => {
|
|
224
215
|
this.redraw()
|
|
225
216
|
})
|