summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-05-23 15:03:55 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-16 19:12:55 +0100
commitf99efcb30feffb03a5769da0779eae9a273e0dc3 (patch)
tree6286329e0dda5f9758816d0587f0ae8692f90eab
parent8f4b7c85dc1d8a5cee8fa546714711ae17ec8187 (diff)
downloadrichard-iii-f99efcb30feffb03a5769da0779eae9a273e0dc3.tar.gz
Add 'shift zoom' for blocks.
-rw-r--r--play.html5
-rw-r--r--ui.js2
2 files changed, 7 insertions, 0 deletions
diff --git a/play.html b/play.html
index 0da37e4..8d973fe 100644
--- a/play.html
+++ b/play.html
@@ -114,6 +114,11 @@ X.map svg path.area.highlight:hover {
/* BLOCKS */
+body.shift .block.known:hover {
+ transform: scale(2) !important;
+ transition: 100ms;
+}
+
.map div.block {
position: absolute;
}
diff --git a/ui.js b/ui.js
index ef73ff6..d6b5402 100644
--- a/ui.js
+++ b/ui.js
@@ -753,4 +753,6 @@ build_map();
drag_element_with_mouse(".battle", ".battle_header");
scroll_with_middle_mouse(".grid_center", 2);
+init_map_zoom();
+init_shift_zoom();
init_client(["Lancaster", "York"]);