aboutsummaryrefslogtreecommitdiff
path: root/webAO/client.js
diff options
context:
space:
mode:
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() {