aboutsummaryrefslogtreecommitdiff
path: root/webAO/client.js
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2021-10-04 21:01:19 +0200
committerstonedDiscord <Tukz@gmx.de>2021-10-04 21:01:19 +0200
commit4e06d17eda0c624179312e3300a64bfe816fa6fb (patch)
treee349b1d5636029f50fdb88cb3db819f9c807f3d2 /webAO/client.js
parenta458698c9f830fc4a67d062e08aab3ea7884d41c (diff)
make it toggeableslkdfnslf
Diffstat (limited to 'webAO/client.js')
-rw-r--r--webAO/client.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/webAO/client.js b/webAO/client.js
index c12b97d..8852a9c 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -2677,6 +2677,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
*/
export async function switchAspectRatio() {