From 7d3a6dc03bb284e3bb711a4a0fa698d197e585ea Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Thu, 17 Nov 2022 22:55:36 +0100 Subject: both ini dropdown and custom --- webAO/dom/updateIniswap.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 webAO/dom/updateIniswap.ts (limited to 'webAO/dom/updateIniswap.ts') diff --git a/webAO/dom/updateIniswap.ts b/webAO/dom/updateIniswap.ts new file mode 100644 index 0000000..e040e64 --- /dev/null +++ b/webAO/dom/updateIniswap.ts @@ -0,0 +1,18 @@ +/** + * Update iniswap drowdown + */ +export function updateIniswap() { + const ini_select = ( + document.getElementById("evi_select") + ); + const ini_name = ( + document.getElementById("evi_filename") + ); + + if (ini_select.selectedIndex === 0) { + ini_filename.style.display = "initial"; + } else { + ini_filename.style.display = "none"; + } +} +window.updateIniswap = updateIniswap; -- cgit