From 6c1a57c2b67f3fe191dda2ef7793b04f54acad90 Mon Sep 17 00:00:00 2001 From: teisuru <31881306+teisuru@users.noreply.github.com> Date: Sun, 27 Aug 2023 20:02:13 +0200 Subject: update seat graphic --- play.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'play.js') 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() -- cgit v1.2.3