summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorJoël Simoneau <simoneaujoel@gmail.com>2025-03-14 15:16:47 -0400
committerJoël Simoneau <simoneaujoel@gmail.com>2025-03-14 15:16:47 -0400
commit8e585e53367c6d30e2b06833fdcfe639aa0a63bd (patch)
tree9447e15f2d6003a0c2b3579149eb91f145c2338b /play.js
parent4dc1156eb6fb825b096f0fd47fe70f07d5ea3063 (diff)
downloadvijayanagara-8e585e53367c6d30e2b06833fdcfe639aa0a63bd.tar.gz
Better div boxes
Diffstat (limited to 'play.js')
-rw-r--r--play.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/play.js b/play.js
index a6dc30a..44a9afc 100644
--- a/play.js
+++ b/play.js
@@ -279,10 +279,10 @@ const layout = {
"rects": {
"available_boxes": {
"MI_available": {
- "x": 24,
- "y": 100,
- "w": 177,
- "h": 110
+ "x": 18,
+ "y": 94,
+ "w": 192,
+ "h": 126
},
"DS_available": {
"x": 796,
@@ -583,7 +583,7 @@ function init_ui() {
// boxes
if (s >= S_MONGOL_INVADERS && s <= S_VE_AVAILABLE) {
let { x, y, w, h } = layout.rects.available_boxes[space_name[s]]
- ui.spaces[s] = e = create("div", { className: "space" })
+ ui.spaces[s] = e = create("div", { className: "space box" })
e.style.left = x + "px"
e.style.top = y + "px"
e.style.width = (w - 4) + "px"