summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorteisuru <31881306+teisuru@users.noreply.github.com>2023-08-27 20:02:13 +0200
committerTor Andersson <tor@ccxvii.net>2023-12-10 18:16:55 +0100
commit6c1a57c2b67f3fe191dda2ef7793b04f54acad90 (patch)
treec8828c8e7c3ef66a224e15dc19d5e5fda25fee77 /play.js
parent334806029f81684611bd0c5d52445b0981cab691 (diff)
downloadplantagenet-6c1a57c2b67f3fe191dda2ef7793b04f54acad90.tar.gz
update seat graphic
Diffstat (limited to 'play.js')
-rw-r--r--play.js12
1 files changed, 5 insertions, 7 deletions
diff --git a/play.js b/play.js
index 85bc07b..40ff74e 100644
--- a/play.js
+++ b/play.js
@@ -711,22 +711,20 @@ function build_map() {
let { x, y, w, h } = seat.box
let xc = Math.round(x + w / 2)
let yc = Math.round(y + h / 2)
- let small = 54
+ let small = 50
locale_xy[ix] = [ xc, yc ]
- e.className = seat.name
+ e.className = "marker " + seat.name
e.style.position = "absolute"
e.style.top = y + "px"
e.style.left = x + "px"
- e.style.width = w + "px"
- e.style.height = h + "px"
- e.style.border = "1px solid black"
+ e.style.width = 50 + "px"
+ e.style.height = 50 + "px"
e.style.backgroundSize = small + "px"
- e.style.backgroundColor = "red"
+ e.style.transform = "rotate(315deg)"
document.getElementById("pieces").appendChild(e)
})
-
data.lords.forEach((lord, ix) => {
let e = ui.lord_cylinder[ix] = document.createElement("div")
let side = lord.side.toLowerCase()