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-17 12:53:17 +0100
commitef5b4b013a1f61290da87cf03e274f77a5389110 (patch)
treee84797d94f9aec47d080863001768b0f1d8215e7
parent73f9cd56a4c0a546af6d99afa8fc4bb629a85a3e (diff)
downloadhammer-of-the-scots-ef5b4b013a1f61290da87cf03e274f77a5389110.tar.gz
Add 'shift zoom' for blocks.
-rw-r--r--play.html5
-rw-r--r--ui.js3
2 files changed, 7 insertions, 1 deletions
diff --git a/play.html b/play.html
index 4ae34cd..1905988 100644
--- a/play.html
+++ b/play.html
@@ -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; }
diff --git a/ui.js b/ui.js
index d974e5f..d7655c1 100644
--- a/ui.js
+++ b/ui.js
@@ -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" ]);