summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-11-24 12:27:26 +0100
committerMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-11-24 12:27:26 +0100
commit11fbcb3221b382649ba01cb20f6ea459e8be48ef (patch)
tree7dd38d4b400ca6cbea0ea1829017b47aff79477f
parente2d0ef2f174316b63c5b47750996baf11a18ad9a (diff)
downloadvotes-for-women-11fbcb3221b382649ba01cb20f6ea459e8be48ef.tar.gz
show state code in tooltip
-rw-r--r--play.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/play.js b/play.js
index a935fe1..a91e755 100644
--- a/play.js
+++ b/play.js
@@ -288,7 +288,8 @@ function on_focus_region(evt) {
}
function on_focus_us_state(evt) {
- document.getElementById("status").textContent = US_STATES[evt.target.my_us_state].name
+ let us_state = US_STATES[evt.target.my_us_state]
+ document.getElementById("status").textContent = `${us_state.name} (${us_state.code})`
}
function on_click_card(evt) {