From 4e06d17eda0c624179312e3300a64bfe816fa6fb Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Mon, 4 Oct 2021 21:01:19 +0200 Subject: make it toggeableslkdfnslf --- webAO/client.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'webAO/client.js') diff --git a/webAO/client.js b/webAO/client.js index c12b97d..8852a9c 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -2676,6 +2676,19 @@ export async function iniedit() { } window.iniedit = iniedit; +/** + * Triggered by the pantilt checkbox + */ + export async function switchPanTilt() { + const background = document.getElementById("client_fullview"); + if(document.getElementById("client_pantilt").checked) { + background.style.transition = "0.5s ease-in-out"; + } else { + background.style.transition = "none" + } +} +window.switchPanTilt = switchPanTilt; + /** * Triggered by the change aspect ratio checkbox */ -- cgit