From 11fbcb3221b382649ba01cb20f6ea459e8be48ef Mon Sep 17 00:00:00 2001 From: Mischa Untaga <99098079+MischaU8@users.noreply.github.com> Date: Fri, 24 Nov 2023 12:27:26 +0100 Subject: show state code in tooltip --- play.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'play.js') 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) { -- cgit v1.2.3