summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-11-23 04:30:58 +0100
committerMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-11-23 04:30:58 +0100
commit09621fa6d75997f3ce4049f36763f11108f8f214 (patch)
tree55ab4a9f005b8b7cb5281fed16e248b2849144b7
parentb5a725f13d514536350cc8cb2b726e3309790bb6 (diff)
downloadvotes-for-women-09621fa6d75997f3ce4049f36763f11108f8f214.tar.gz
check/x offset
-rw-r--r--play.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/play.js b/play.js
index 8bdef4c..b9eb5d3 100644
--- a/play.js
+++ b/play.js
@@ -697,15 +697,15 @@ function on_update() { // eslint-disable-line no-unused-vars
e = ui.green_checks[green_check_idx++]
e.my_us_state = i
e.classList.toggle("action", is_green_check_action(i))
- e.style.left = x + "px"
- e.style.top = y + "px"
+ e.style.left = x - 21 + "px"
+ e.style.top = y - 16 + "px"
ui.pieces.appendChild(e)
} else if (is_red_x(i)) {
e = ui.red_xs[red_x_idx++]
e.my_us_state = i
e.classList.toggle("action", is_red_x_action(i))
- e.style.left = x + "px"
- e.style.top = y + "px"
+ e.style.left = x - 21 + "px"
+ e.style.top = y - 16 + "px"
ui.pieces.appendChild(e)
}
}