diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-12-20 16:41:03 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-11-16 19:12:55 +0100 |
commit | cab21221f1e08d469a6d8a18e8b82f2f30a95542 (patch) | |
tree | 883b7f3abddbca95072411893db8a997fbf32278 | |
parent | d92e88b9d413fc11a39a249b539b38c6d4122997 (diff) | |
download | richard-iii-cab21221f1e08d469a6d8a18e8b82f2f30a95542.tar.gz |
Use ID instead of class for grid divs.
-rw-r--r-- | play.html | 16 | ||||
-rw-r--r-- | ui.js | 2 |
2 files changed, 9 insertions, 9 deletions
@@ -14,10 +14,10 @@ <script defer src="ui.js"></script> <style> -.grid_center { background-color: #788; } -.grid_role { background-color: silver; } -.grid_top { background-color: silver; } -.grid_top.your_turn { background-color: orange; } +#grid_center { background-color: #788; } +#grid_role { background-color: silver; } +#grid_top { background-color: silver; } +#grid_top.your_turn { background-color: orange; } .one .role_name { background-color: salmon; } .two .role_name { background-color: ghostwhite; } .turn_info { background-color: gainsboro; } @@ -306,9 +306,9 @@ div.block { <th class="battle_message" colspan=4></th> </table> -<div class="grid_window"> +<div id="grid_window"> - <div class="grid_top"> + <div id="grid_top"> <div class="menu"> <div class="menu_title"><img src="/images/cog.svg"></div> @@ -372,7 +372,7 @@ div.block { <div id="exit_button" class="image_button hide" onclick="send_exit()"><img src="/images/exit-door.svg"></div> </div> - <div class="grid_role"> + <div id="grid_role"> <div class="role one"> <div class="role_name"> @@ -398,7 +398,7 @@ div.block { <div id="log"></div> - <div class="grid_center"> + <div id="grid_center"> <div class="mapwrap" id="mapwrap"> <div class="map" id="map"> @@ -794,7 +794,7 @@ function on_update() { build_map(); drag_element_with_mouse(".battle", ".battle_header"); -scroll_with_middle_mouse(".grid_center", 2); +scroll_with_middle_mouse("#grid_center", 2); init_map_zoom(); init_shift_zoom(); init_client(["Lancaster", "York"]); |