diff options
Diffstat (limited to 'play.html')
-rw-r--r-- | play.html | 60 |
1 files changed, 58 insertions, 2 deletions
@@ -38,8 +38,10 @@ <img src="images/shaking-hands.svg"> </summary> <menu> - <li id="propose_subsidy_menu" onclick="send_action('propose_subsidy')">Propose subsidy contract - <li id="cancel_subsidy_menu" onclick="send_action('cancel_subsidy')">Cancel subsidy contract + <li id="propose_subsidy_menu" onclick="propose_subsidy()">Propose subsidy contract + <li id="cancel_subsidy_menu" onclick="cancel_subsidy()">Cancel subsidy contract + <li class="separator"> + <li id="propose_deal_menu" onclick="propose_deal()">Propose deal </menu> </details> </div> @@ -122,6 +124,8 @@ <div id="pc_show" style="display:flex;flex-wrap:wrap;gap:18px;"> </div> </div> + <div class="deal" id="active_deal_list"></div> + <div class="deal" id="proposed_deal_list"></div> </div> </div> @@ -141,4 +145,56 @@ <footer id="status"></footer> +<dialog id="propose_deal_dlog"> + <form id="propose_deal_form"> + <select name="a_power"> + <option value="0">France</option> + <option value="1">Prussia</option> + <option value="2">Pragmatic Army</option> + <option value="3">Austria</option> + <option value="4">Bavaria</option> + <option value="5">Saxony</option> + </select> + <br> + <textarea name="a_promise" placeholder="Promise..." rows=3 cols=40></textarea> + <br><br> + + <select name="b_power"> + <option value="0">France</option> + <option value="1">Prussia</option> + <option value="2">Pragmatic Army</option> + <option value="3">Austria</option> + <option value="4">Bavaria</option> + <option value="5">Saxony</option> + </select> + <br> + <textarea name="b_promise" placeholder="Promise..." rows=3 cols=40></textarea> + <br><br> + + Last until: + <br> + <select name="turn"> + <option value="1">Turn 1</option> + <option value="2">Turn 2</option> + <option value="3">Turn 3</option> + <option value="5">Turn 4</option> + <option value="6">Turn 5</option> + <option value="7">Turn 6</option> + <option value="9">Turn 7</option> + <option value="10">Turn 8</option> + <option value="11">Turn 9</option> + <option value="13">Turn 10</option> + <option value="14">Turn 11</option> + <option value="15">Turn 12</option> + </select> + <br><br> + + <div style="text-align:right"> + <button onclick="propose_deal_cancel(event)">Cancel</button> + <button onclick="propose_deal_submit(event)">Submit</button> + </div> + + </form> +</dialog> + </body> |