diff options
| author | David Skoland <davidskoland@gmail.com> | 2026-03-28 14:09:06 +0100 |
|---|---|---|
| committer | David Skoland <davidskoland@gmail.com> | 2026-03-28 14:09:06 +0100 |
| commit | 6f407b54c3251b90463bc508852b031d72b0c673 (patch) | |
| tree | f5a86e282dd1c09b372fff842c5740b38bb1256e /webAO/dom/renderAreaList.ts | |
| parent | 95145c824e252b030a5e53950c9f1ed39774c79a (diff) | |
remove UI related changes
Diffstat (limited to 'webAO/dom/renderAreaList.ts')
| -rw-r--r-- | webAO/dom/renderAreaList.ts | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/webAO/dom/renderAreaList.ts b/webAO/dom/renderAreaList.ts deleted file mode 100644 index e622765..0000000 --- a/webAO/dom/renderAreaList.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { client } from "../client"; -import { area_click } from "./areaClick"; - -export function renderAreaList() { - const container = document.getElementById("areas")!; - container.innerHTML = ""; - - for (let i = 0; i < client.areas.length; i++) { - const area = client.areas[i]; - const el = document.createElement("SPAN"); - el.className = `area-button area-${area.status.toLowerCase()}`; - el.id = `area${i}`; - el.innerText = `${area.name} (${area.players}) [${area.status}]`; - el.title = - `Players: ${area.players}\n` + - `Status: ${area.status}\n` + - `CM: ${area.cm}\n` + - `Area lock: ${area.locked}`; - el.onclick = function () { - area_click(el); - }; - container.appendChild(el); - } -} |
