From 23882805614d548df2d4c5aecfbcb40438868207 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 31 Jul 2022 13:11:25 +0200 Subject: Show minefields. Fix bugs. Show active months. --- play.html | 69 +++++++++++++++++++++++++++++++++++++++++---------------------- 1 file changed, 45 insertions(+), 24 deletions(-) (limited to 'play.html') diff --git a/play.html b/play.html index d7ef71d..16c303e 100644 --- a/play.html +++ b/play.html @@ -190,8 +190,9 @@ header.your_turn { background-color: orange; } table { border-collapse: collapse; font-size: 12px; user-select: none; } td.blank { background-color: transparent; border: none } td,th { border: 1px solid #222; text-align: center; padding: 2px 4px; } -th { background-color: #222; color: #e6d9c1; } -td { background-color: #e6d9c1; min-width: 20px; } +td { min-width: 20px; } +th { background-color: #222; color: oldlace; } +td { background-color: oldlace; } table .required_target { background-color: #b8d9ca } table .must_fire_first { background-color: #f7dc68 } table .only_unsupported { background-color: #f0b0af } @@ -232,16 +233,17 @@ td img { vertical-align: middle } display: flex; user-select: none; position: absolute; - top: 104px; + top: 24px; left: 1840px; gap: 9px; - display: none; } .month { + visibility: hidden; width: 68px; height: 68px; background-color: #fee0bf; + background-color: wheat; color: black; font-size: 40px; line-height: 68px; @@ -251,6 +253,14 @@ td img { vertical-align: middle } color: #231f20; } +.month.show { + visibility: visible; +} + +.month.now { + background-color: tan; +} + svg .side { stroke-linecap: round; stroke-width: 8px; @@ -357,6 +367,15 @@ svg .hex.tip { fill-opacity: 0.6; } +.minefield { + position: absolute; + pointer-events: none; + width: 48px; + height: 48px; + background-image: url(minefield.svg); + opacity: 0.5; +} + #map .unit { position: absolute; } @@ -656,29 +675,31 @@ svg .hex.tip {
-
1
-
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
+
1
+
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
-
18
-
19
-
20
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+
18
+
19
+
20
+ +
-- cgit v1.2.3