aboutsummaryrefslogtreecommitdiff
path: root/webAO/dom/switchChatOffset.ts
blob: 6552cbd3dec19e93f4ed174aa417aabe4e3d7c84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/**
 * Triggered by the change aspect ratio checkbox
 */
export async function switchChatOffset() {
    const container = document.getElementById("client_chatcontainer")!;
    if (
        (<HTMLInputElement>document.getElementById("client_hdviewport_offset"))
            .checked
    ) {
        container.style.width = "80%";
        container.style.left = "10%";
    } else {
        container.style.width = "100%";
        container.style.left = "0";
    }
}
window.switchChatOffset = switchChatOffset;