diff options
| author | stonedDiscord <Tukz@gmx.de> | 2026-02-11 12:28:49 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-11 12:28:49 +0100 |
| commit | 8e7af5b93009c987a4c0c3fef014cf7b64463e03 (patch) | |
| tree | 04b0c383ca35962dc3054ec7ace34bb64f019622 /webAO/dom/updatePlayerAreas.ts | |
| parent | 726d89ce8605d27be1c14bba59f81cfd6254ccb3 (diff) | |
| parent | 5bb35a981e2f35df7fbf126faa8655ee3b3ca142 (diff) | |
Merge pull request #293 from OmniTroid/better-charloading
Better charloading
Diffstat (limited to 'webAO/dom/updatePlayerAreas.ts')
| -rw-r--r-- | webAO/dom/updatePlayerAreas.ts | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/webAO/dom/updatePlayerAreas.ts b/webAO/dom/updatePlayerAreas.ts deleted file mode 100644 index 99eccf1..0000000 --- a/webAO/dom/updatePlayerAreas.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { client } from "../client"; -import { area_click } from "./areaClick"; -/** - * Triggered when someone switches areas - * @param {Number} ownarea - */ -export function updatePlayerAreas(ownarea: number) { - for (let i = 0; i < client.areas.length; i++) { - if (i === ownarea) - for (let classelement of Array.from( - document.getElementsByClassName( - `area${i}`, - ) as HTMLCollectionOf<HTMLElement>, - )) - classelement.style.display = ""; - else - for (let classelement of Array.from( - document.getElementsByClassName( - `area${i}`, - ) as HTMLCollectionOf<HTMLElement>, - )) - classelement.style.display = "none"; - } -} |
