diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-05-23 15:03:55 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-11-17 12:53:17 +0100 |
commit | ef5b4b013a1f61290da87cf03e274f77a5389110 (patch) | |
tree | e84797d94f9aec47d080863001768b0f1d8215e7 | |
parent | 73f9cd56a4c0a546af6d99afa8fc4bb629a85a3e (diff) | |
download | hammer-of-the-scots-ef5b4b013a1f61290da87cf03e274f77a5389110.tar.gz |
Add 'shift zoom' for blocks.
-rw-r--r-- | play.html | 5 | ||||
-rw-r--r-- | ui.js | 3 |
2 files changed, 7 insertions, 1 deletions
@@ -114,6 +114,11 @@ div.turn.year_1314 { left: 1511px; top: 1677px; } /* BLOCKS */ +body.shift .block.known:hover { + transform: scale(2) !important; + transition: 100ms; +} + .oldblocks div.block { border-radius: 8px; } .newblocks div.block { border-radius: 4px; } @@ -757,5 +757,6 @@ function on_update(state, player) { drag_element_with_mouse(".battle", ".battle_header"); drag_element_with_mouse(".herald", ".herald_header"); scroll_with_middle_mouse(".grid_center", 2); - +init_map_zoom(); +init_shift_zoom(); init_client([ "England", "Scotland" ]); |