diff options
| author | Aargh Rai <aargh.rai+git@gmail.com> | 2026-02-25 22:36:38 +0530 |
|---|---|---|
| committer | Aargh Rai <aargh.rai+git@gmail.com> | 2026-02-25 22:36:38 +0530 |
| commit | 4c051c50de1c1284c438de87881f52a6180fdf8e (patch) | |
| tree | d92614b42633c780b9714d44e44983a9014fd34b /assets/board.js | |
| parent | c61a59a4dd4a846499e6faf50ecdd87786f5c2df (diff) | |
pawns DONEEE
Diffstat (limited to 'assets/board.js')
| -rw-r--r-- | assets/board.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/assets/board.js b/assets/board.js index e5a9a2d..e4dcb87 100644 --- a/assets/board.js +++ b/assets/board.js @@ -91,7 +91,7 @@ window.onload = () => { if (i % 8 == 0) { const label = document.createElement("div"); label.classList.add("label"); - label.textContent = ["h", "g", "f", "e", "d", "c", "b", "a"][i / 8]; + label.textContent = 8 - Math.round(i / 8); board.appendChild(label); } const square = document.createElement("div"); @@ -132,10 +132,10 @@ window.onload = () => { const label = document.createElement("div"); label.classList.add("horizontal_label"); board.appendChild(label); - for (let i = 1; i < 9; i++) { + for (let i = 0; i < 8; i++) { const label = document.createElement("div"); label.classList.add("horizontal_label"); - label.textContent = i; + label.textContent = ["a", "b", "c", "d", "e", "f", "g", "h"][i]; board.appendChild(label); } |
