diff options
Diffstat (limited to 'webAO/dom/switchAspectRatio.ts')
| -rw-r--r-- | webAO/dom/switchAspectRatio.ts | 28 |
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; |
