From e6cbdd5c77a4ec4b771fdec2094a480ff6d17eb4 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 6 Jan 2022 12:35:52 +0100 Subject: Update for new server version. --- play.css | 6 +- play.html | 12 +- play.js | 581 ++++++++++++++++++++++++++------------------------------------ rules.js | 47 ++--- 4 files changed, 265 insertions(+), 381 deletions(-) diff --git a/play.css b/play.css index 3ae1280..a81f79b 100644 --- a/play.css +++ b/play.css @@ -4,8 +4,8 @@ main { background-color: #461145; } #roles { background-color: tan; } header { background-color: tan; } header.your_turn { background-color: orange; } -.one .role_name { background-color: salmon; } -.two .role_name { background-color: #eb5; } +#role_Caesar .role_name { background-color: salmon; } +#role_Pompeius .role_name { background-color: #eb5; } #turn_info { background-color: burlywood; } #log { background-color: wheat; } @@ -82,7 +82,7 @@ header.your_turn { background-color: orange; } #battle_header { background-color: brown; color: lemonchiffon; } .battle_separator { background-color: brown; } -.battle_line.enemy .battle_menu_list { min-height: 0; } +body:not(.replay) .battle_line.enemy .battle_menu_list { min-height: 0; } .battle_reserves .battle_menu_list { min-height: 0; } .battle_reserves > td > div { height: 75px; padding: 5px; } .battle_a_cell > div { min-width: 90px; padding: 5px 5px; } diff --git a/play.html b/play.html index bd37f2f..5bf970f 100644 --- a/play.html +++ b/play.html @@ -6,13 +6,12 @@ JULIUS CAESAR - - + + - - + @@ -69,7 +68,7 @@