| @@ -39,7 +39,7 @@ body { | |||||
| #options { | #options { | ||||
| flex: 1 0 15vw; | flex: 1 0 15vw; | ||||
| background: red; | |||||
| background: #444; | |||||
| } | } | ||||
| #entities { | #entities { | ||||
| @@ -74,3 +74,8 @@ body { | |||||
| height: 100%; | height: 100%; | ||||
| background: #333; | background: #333; | ||||
| } | } | ||||
| #options input { | |||||
| width: 50%; | |||||
| font-size: 150%; | |||||
| } | |||||
| @@ -24,11 +24,13 @@ | |||||
| </div> | </div> | ||||
| <div id="main-area"> | <div id="main-area"> | ||||
| <div id="options"> | <div id="options"> | ||||
| <input type="number" id="options-height-value" value="10"> | |||||
| <select id="options-height-unit"> | |||||
| <option>meters</option> | |||||
| <option>kilometers</option> | |||||
| </select> | |||||
| <div class="option-row"> | |||||
| <input type="number" id="options-height-value" value="10"> | |||||
| <select id="options-height-unit"> | |||||
| <option>meters</option> | |||||
| <option>kilometers</option> | |||||
| </select> | |||||
| </div> | |||||
| </div> | </div> | ||||
| <div id="world"> | <div id="world"> | ||||
| <div id="entities"> | <div id="entities"> | ||||
| @@ -183,8 +183,6 @@ document.addEventListener("DOMContentLoaded", () => { | |||||
| document.querySelector("#options-height-unit").addEventListener("input", e => { | document.querySelector("#options-height-unit").addEventListener("input", e => { | ||||
| updateWorldHeight(); | updateWorldHeight(); | ||||
| }) | }) | ||||
| const entities = document.querySelector("#entities"); | |||||
| world.addEventListener("mousedown", e => deselect()); | world.addEventListener("mousedown", e => deselect()); | ||||
| document.addEventListener("mouseup", e => clickUp()); | document.addEventListener("mouseup", e => clickUp()); | ||||