fixed issue with borders
This commit is contained in:
parent
c08ec6ae1c
commit
332e6847af
|
@ -195,7 +195,10 @@ function removeMove(move: Move) {
|
||||||
const box = <HTMLElement>line.children[move.x - min_x];
|
const box = <HTMLElement>line.children[move.x - min_x];
|
||||||
setInnerTile(box, Array(13).fill(9), "0");
|
setInnerTile(box, Array(13).fill(9), "0");
|
||||||
box.removeChild(box.getElementsByTagName('img')[0]);
|
box.removeChild(box.getElementsByTagName('img')[0]);
|
||||||
box.style.border = "none";
|
const t = ["player0", "player0-hidden", "player1", "player1-hidden", "player-1", "player-1-hidden"];
|
||||||
|
for (let i = 0; i < 6; i++) {
|
||||||
|
box.classList.remove(t[i]);
|
||||||
|
}
|
||||||
box.style.rotate = "0";
|
box.style.rotate = "0";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue