aboutsummaryrefslogtreecommitdiff
path: root/webAO/dom/switchPanTilt.ts
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/dom/switchPanTilt.ts')
-rw-r--r--webAO/dom/switchPanTilt.ts18
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;