From 0d883df1f0c510739a15edd7f708e2800d20bb32 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 29 Nov 2024 00:44:18 +0100 Subject: Set initial piece positions to starting layout. --- play.css | 4 ++-- play.html | 10 +++++----- play.js | 6 +++++- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/play.css b/play.css index dc801f8..1de0d40 100644 --- a/play.css +++ b/play.css @@ -87,7 +87,7 @@ body.Communist header.your_turn { background-color: hsl(355, 70%, 75%); } .space.Poland.action { border-color: yellow; } .space.Czechoslovakia.action { border-color: lightgreen; } .space.Hungary.action { border-color: gold; } -.space.Romania.action { border-color: peachpuff; } +.space.Romania.action { border-color: pink; } .space.Bulgaria.action { border-color: palegreen; } .space.selected { @@ -449,4 +449,4 @@ body.Communist header.your_turn { background-color: hsl(355, 70%, 75%); } .card.power_49 { background-image: url(cards75/power_49.avif) } .card.power_50 { background-image: url(cards75/power_50.avif) } .card.power_51 { background-image: url(cards75/power_51.avif) } -.card.power_52 { background-image: url(cards75/power_52.avif) } \ No newline at end of file +.card.power_52 { background-image: url(cards75/power_52.avif) } diff --git a/play.html b/play.html index 713bb8b..2d77270 100644 --- a/play.html +++ b/play.html @@ -53,11 +53,11 @@
-
-
+
+
-
-
+
+
@@ -130,4 +130,4 @@ - \ No newline at end of file + diff --git a/play.js b/play.js index 4b1edc6..311572e 100644 --- a/play.js +++ b/play.js @@ -538,12 +538,16 @@ function layout_stability_marker() { ui.stability.style.top = y - 25 + "px" } -let TST_X = [ 0, 53, 53 + 69, 53 + 69 * 2, 53 + 69 * 3, 53 + 69 * 4, 53 + 69 * 5, 53 + 69 * 6, 556 ] +let TST_X = [ 53, 53, 53 + 69, 53 + 69 * 2, 53 + 69 * 3, 53 + 69 * 4, 53 + 69 * 5, 53 + 69 * 6, 556 ] let TST_Y = [ 2128, 2257 ] function layout_tst_marker(e, v, top) { let x = TST_X[v] + 24 let y = TST_Y[top] + 24 + if (v === 0) { + x -= 40 + y -= 10 + } e.style.left = x - 25 + "px" e.style.top = y - 25 + "px" } -- cgit v1.2.3