From 3d6c62e23704226551e2fa5475544878dc791f31 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 13 Dec 2024 16:06:25 +0100 Subject: Hide "politics" checkbox for minor power deals. --- play.html | 4 ++-- play.js | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/play.html b/play.html index cbfdd62..a86e59a 100644 --- a/play.html +++ b/play.html @@ -181,7 +181,7 @@

- + @@ -215,7 +215,7 @@

- + diff --git a/play.js b/play.js index 836effe..9a3ac97 100644 --- a/play.js +++ b/play.js @@ -1908,6 +1908,8 @@ function update_deal_options() { let b_power = window.propose_deal_form.elements.b_power.value | 0 window.a_hussars_label.classList.toggle("hide", a_power !== P_AUSTRIA) window.b_hussars_label.classList.toggle("hide", b_power !== P_AUSTRIA) + window.a_politics_label.classList.toggle("hide", all_minor_powers.includes(a_power)) + window.b_politics_label.classList.toggle("hide", all_minor_powers.includes(b_power)) } function propose_deal() { -- cgit v1.2.3