diff options
author | ame <[email protected]> | 2024-07-14 02:19:12 -0500 |
---|---|---|
committer | ame <[email protected]> | 2024-07-14 02:19:12 -0500 |
commit | 93041c88d3e3284ce90321563500956eb635eb71 (patch) | |
tree | 0813bfb59f64315fca4a0cdcb52460604b0d3f11 | |
parent | 95404b943bc74b8beec97ccb514ef08b89f134cd (diff) |
remove semi-colons lol
-rw-r--r-- | public/sync_board.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/public/sync_board.js b/public/sync_board.js index d9820e3..629cae6 100644 --- a/public/sync_board.js +++ b/public/sync_board.js @@ -3,13 +3,13 @@ function sync_board(){ for(let i = 0; i < 8; i++){ for(let j = 0; j < 8; j++){ - if(board[i][j] == 0) continue; + if(board[i][j] == 0) continue let square = document.getElementById(`${alphabet.charAt(j)}${8 - i}`) let piece = document.createElement('p') piece.classList.add(board[i][j] > 0 ? 'w' : 'b') - square.append(piece); + square.append(piece) piece.append(table[Math.abs(board[i][j])]) } } |