aboutsummaryrefslogtreecommitdiff
path: root/webAO/dom/switchAspectRatio.ts
diff options
context:
space:
mode:
authorstonedDiscord <stonedDiscord@users.noreply.github.com>2024-11-20 13:31:50 +0000
committerGitHub Action <actions@github.com>2024-11-20 13:31:50 +0000
commit6684f3fce6e90fd0574d7bab63b629554ab03ef6 (patch)
treeb2a62247d17e23a77af57aea355ba621666817c2 /webAO/dom/switchAspectRatio.ts
parent95a2d1361d84c61b454ebe506e6963b93f6d8dee (diff)
Prettified Code!
Diffstat (limited to 'webAO/dom/switchAspectRatio.ts')
-rw-r--r--webAO/dom/switchAspectRatio.ts28
1 files changed, 14 insertions, 14 deletions
diff --git a/webAO/dom/switchAspectRatio.ts b/webAO/dom/switchAspectRatio.ts
index 79d4110..db55cb0 100644
--- a/webAO/dom/switchAspectRatio.ts
+++ b/webAO/dom/switchAspectRatio.ts
@@ -2,18 +2,18 @@
* Triggered by the change aspect ratio checkbox
*/
export async function switchAspectRatio() {
- const background = document.getElementById("client_gamewindow")!;
- const offsetCheck = <HTMLInputElement>(
- document.getElementById("client_hdviewport_offset")
- );
- if (
- (<HTMLInputElement>document.getElementById("client_hdviewport")).checked
- ) {
- background.style.paddingBottom = "56.25%";
- offsetCheck.disabled = false;
- } else {
- background.style.paddingBottom = "75%";
- offsetCheck.disabled = true;
- }
+ const background = document.getElementById("client_gamewindow")!;
+ const offsetCheck = <HTMLInputElement>(
+ document.getElementById("client_hdviewport_offset")
+ );
+ if (
+ (<HTMLInputElement>document.getElementById("client_hdviewport")).checked
+ ) {
+ background.style.paddingBottom = "56.25%";
+ offsetCheck.disabled = false;
+ } else {
+ background.style.paddingBottom = "75%";
+ offsetCheck.disabled = true;
+ }
}
-window.switchAspectRatio = switchAspectRatio; \ No newline at end of file
+window.switchAspectRatio = switchAspectRatio;