From b60b656fceee55f689de2bdb30a86b7fd42e6810 Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Sat, 16 Jul 2022 14:39:39 +0200 Subject: something weird was going on with pantilt, creating lag. removed onload --- public/client.html | 2 +- webAO/client.ts | 13 +++---------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/public/client.html b/public/client.html index 5d5f7b1..1fc83cb 100644 --- a/public/client.html +++ b/public/client.html @@ -76,7 +76,7 @@
- +
diff --git a/webAO/client.ts b/webAO/client.ts index 6c56950..246d496 100644 --- a/webAO/client.ts +++ b/webAO/client.ts @@ -2864,22 +2864,15 @@ window.iniedit = iniedit; */ export async function switchPanTilt() { const fullview = document.getElementById('client_fullview'); - const fullbg = document.getElementById('client_court'); const checkbox = document.getElementById('client_pantilt'); - if (fullbg.src = transparentPng) { - checkbox.checked = false; - fullbg.style.display = 'none'; - } else { - checkbox.checked = true; - fullbg.style.display = ''; - } - if (checkbox.checked) { fullview.style.transition = '0.5s ease-in-out'; } else { fullview.style.transition = 'none'; } + + return } window.switchPanTilt = switchPanTilt; @@ -2887,7 +2880,7 @@ window.switchPanTilt = switchPanTilt; * Triggered by the change aspect ratio checkbox */ export async function switchAspectRatio() { - const background = document.getElementById('client_background'); + const background = document.getElementById('client_gamewindow'); const offsetCheck = document.getElementById('client_hdviewport_offset'); if ((document.getElementById('client_hdviewport')).checked) { background.style.paddingBottom = '56.25%'; -- cgit