aboutsummaryrefslogtreecommitdiff
path: root/webAO/dom/updateIniswap.ts
blob: e040e642e8138b624c60b42e36362269f1cb64a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/**
 * Update iniswap drowdown
 */
export function updateIniswap() {
    const ini_select = <HTMLSelectElement>(
        document.getElementById("evi_select")
    );
    const ini_name = <HTMLInputElement>(
        document.getElementById("evi_filename")
    );

    if (ini_select.selectedIndex === 0) {
        ini_filename.style.display = "initial";
    } else {
        ini_filename.style.display = "none";
    }
}
window.updateIniswap = updateIniswap;