diff options
author | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-11-24 12:27:26 +0100 |
---|---|---|
committer | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-11-24 12:27:26 +0100 |
commit | 11fbcb3221b382649ba01cb20f6ea459e8be48ef (patch) | |
tree | 7dd38d4b400ca6cbea0ea1829017b47aff79477f | |
parent | e2d0ef2f174316b63c5b47750996baf11a18ad9a (diff) | |
download | votes-for-women-11fbcb3221b382649ba01cb20f6ea459e8be48ef.tar.gz |
show state code in tooltip
-rw-r--r-- | play.js | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) { |