aboutsummaryrefslogtreecommitdiff
path: root/webAO/dom/renderAreaList.ts
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/dom/renderAreaList.ts')
-rw-r--r--webAO/dom/renderAreaList.ts24
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);
- }
-}