diff options
-rw-r--r-- | play.html | 4 | ||||
-rw-r--r-- | play.js | 2 |
2 files changed, 4 insertions, 2 deletions
@@ -181,7 +181,7 @@ <option value="15">Turn 12</option> </select> <p> - <label><input type="checkbox" name="a_phase" value="1" id="a_phase_politics">Politics</label> + <label id="a_politics_label"><input type="checkbox" name="a_phase" value="1" id="a_phase_politics">Politics</label> <label><input type="checkbox" name="a_phase" value="4" id="a_phase_movement">Movement</label> <label><input type="checkbox" name="a_phase" value="8" id="a_phase_retreat">Retreat</label> <label id="a_hussars_label"><input type="checkbox" name="a_phase" value="2" id="a_phase_hussars">Hussars</label> @@ -215,7 +215,7 @@ <option value="15">Turn 12</option> </select> <p> - <label><input type="checkbox" name="b_phase" value="1" id="b_phase_politics">Politics</label> + <label id="b_politics_label"><input type="checkbox" name="b_phase" value="1" id="b_phase_politics">Politics</label> <label><input type="checkbox" name="b_phase" value="4" id="b_phase_movement">Movement</label> <label><input type="checkbox" name="b_phase" value="8" id="b_phase_retreat">Retreat</label> <label id="b_hussars_label"><input type="checkbox" name="b_phase" value="2" id="b_phase_hussars">Hussars</label> @@ -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() { |