diff options
| author | stonedDiscord <stonedDiscord@users.noreply.github.com> | 2024-11-20 13:31:50 +0000 |
|---|---|---|
| committer | GitHub Action <actions@github.com> | 2024-11-20 13:31:50 +0000 |
| commit | 6684f3fce6e90fd0574d7bab63b629554ab03ef6 (patch) | |
| tree | b2a62247d17e23a77af57aea355ba621666817c2 /webAO/packets/handlers/handleCharsCheck.ts | |
| parent | 95a2d1361d84c61b454ebe506e6963b93f6d8dee (diff) | |
Prettified Code!
Diffstat (limited to 'webAO/packets/handlers/handleCharsCheck.ts')
| -rw-r--r-- | webAO/packets/handlers/handleCharsCheck.ts | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/webAO/packets/handlers/handleCharsCheck.ts b/webAO/packets/handlers/handleCharsCheck.ts index 2d891ef..c862cd7 100644 --- a/webAO/packets/handlers/handleCharsCheck.ts +++ b/webAO/packets/handlers/handleCharsCheck.ts @@ -5,13 +5,13 @@ import { client } from "../../client"; * @param {Array} args list of all characters represented as a 0 for free or a -1 for taken */ export const handleCharsCheck = (args: string[]) => { - for (let i = 0; i < client.char_list_length; i++) { - const img = document.getElementById(`demo_${i}`)!; + for (let i = 0; i < client.char_list_length; i++) { + const img = document.getElementById(`demo_${i}`)!; - if (args[i + 1] === "-1") { - img.style.opacity = "0.25"; - } else if (args[i + 1] === "0") { - img.style.opacity = "1"; - } + if (args[i + 1] === "-1") { + img.style.opacity = "0.25"; + } else if (args[i + 1] === "0") { + img.style.opacity = "1"; } -}
\ No newline at end of file + } +}; |
