From 6684f3fce6e90fd0574d7bab63b629554ab03ef6 Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Wed, 20 Nov 2024 13:31:50 +0000 Subject: Prettified Code! --- webAO/dom/switchAspectRatio.ts | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'webAO/dom/switchAspectRatio.ts') 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 = ( - document.getElementById("client_hdviewport_offset") - ); - if ( - (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 = ( + document.getElementById("client_hdviewport_offset") + ); + if ( + (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; -- cgit