diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-12-20 17:03:04 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 12:42:59 +0100 |
commit | 89c7c9a9b45cbd89bb1eaea40c7b4dad3765f094 (patch) | |
tree | 3d192dfc5a5b4c0be15eb8047758e97816deda56 | |
parent | c6243b85e953ad16723977691d7617a49d181c8f (diff) | |
download | 300-earth-and-water-89c7c9a9b45cbd89bb1eaea40c7b4dad3765f094.tar.gz |
Use ID instead of class for map and mapwrap.
-rw-r--r-- | play.html | 8 | ||||
-rw-r--r-- | ui.js | 2 |
2 files changed, 5 insertions, 5 deletions
@@ -142,12 +142,12 @@ /* MAP WITH ARMIES, FLEETS, AND MARKERS */ -.map.greek, .map.greek > div { +#map.greek, #map.greek > div { transform: rotate(180deg); transform-origin: center; } -.map { +#map { position: relative; width: 1240px; height: 878px; @@ -157,7 +157,7 @@ margin: 0 auto; } -.map.hide_markers > div { +#map.hide_markers > div { visibility: hidden; } @@ -331,7 +331,7 @@ <div id="grid_center"> - <div id="map" class="map"> + <div id="map"> <div id="campaign" class="marker campaign_1"></div> <div id="bridge" class="bridge"></div> @@ -642,7 +642,7 @@ function on_card(evt) { } function toggle_markers() { - document.querySelector(".map").classList.toggle("hide_markers"); + document.getElementById("map").classList.toggle("hide_markers"); } if (param_role == GREECE) |