Web Dev Solutions

Catalin Mititiuc

From 3e521e2f64809edc47f50f7215a6a05dd32b69dc Mon Sep 17 00:00:00 2001 From: Catalin Mititiuc Date: Sun, 28 Apr 2024 16:46:25 -0700 Subject: Rename element class 'board' to 'gameboard' --- src/modules/game/soldier.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/game/soldier.js') diff --git a/src/modules/game/soldier.js b/src/modules/game/soldier.js index 0d75fc6..922faca 100644 --- a/src/modules/game/soldier.js +++ b/src/modules/game/soldier.js @@ -77,7 +77,7 @@ export function place(svg, selected, cell) { trace.dataset.allegiance = selected.dataset.allegiance; trace.classList.add('move-trace'); - svg.querySelector('.board').prepend(trace); + svg.querySelector('.gameboard').prepend(trace); } else { points = `${trace.getAttribute('points')} ${current.x},${current.y}`; } -- cgit v1.2.3