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/dom/switchPanTilt.ts | |
| parent | 95a2d1361d84c61b454ebe506e6963b93f6d8dee (diff) | |
Prettified Code!
Diffstat (limited to 'webAO/dom/switchPanTilt.ts')
| -rw-r--r-- | webAO/dom/switchPanTilt.ts | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/webAO/dom/switchPanTilt.ts b/webAO/dom/switchPanTilt.ts index 7ceea06..9422eff 100644 --- a/webAO/dom/switchPanTilt.ts +++ b/webAO/dom/switchPanTilt.ts @@ -2,15 +2,15 @@ * Triggered by the pantilt checkbox */ export async function switchPanTilt() { - const fullview = document.getElementById("client_fullview")!; - const checkbox = <HTMLInputElement>document.getElementById("client_pantilt"); + const fullview = document.getElementById("client_fullview")!; + const checkbox = <HTMLInputElement>document.getElementById("client_pantilt"); - if (checkbox.checked) { - fullview.style.transition = "0.5s ease-in-out"; - } else { - fullview.style.transition = "none"; - } + if (checkbox.checked) { + fullview.style.transition = "0.5s ease-in-out"; + } else { + fullview.style.transition = "none"; + } - return; + return; } -window.switchPanTilt = switchPanTilt;
\ No newline at end of file +window.switchPanTilt = switchPanTilt; |
