diff options
-rw-r--r-- | play.html | 9 | ||||
-rw-r--r-- | play.js | 1 |
2 files changed, 10 insertions, 0 deletions
@@ -130,6 +130,11 @@ path.state.action { stroke-width: 20; } +path.state.selected { + stroke: yellow; + stroke-width: 20; +} + path.state:hover { fill: white; } @@ -150,6 +155,10 @@ div.state.action { border-color: white; } +div.state.selected { + border-color: yellow; +} + div.state:hover { background-color: #fff8; } @@ -709,6 +709,7 @@ function on_update() { // eslint-disable-line no-unused-vars ui.pieces.appendChild(e) } } + ui.us_states[i].classList.toggle("selected", i === view.selected_us_state) } // remove remaining unused cubes & checks & xs from DOM |