From 02e90d2545ebcad77c301669fd3c01a8dbace5fb Mon Sep 17 00:00:00 2001 From: Edoan Date: Thu, 30 Jun 2022 14:56:12 -0300 Subject: [PATCH] remove unecessary Update function --- index.js | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/index.js b/index.js index 721431d..ab0bee9 100644 --- a/index.js +++ b/index.js @@ -72,34 +72,6 @@ function OnInputChange(byButton = false) { localStorage.setItem('goodValue', goodValue); } -function Update() { -let seed = seedInput.value; - - let amount = parseInt(amountInput.value); - if (!amount && amount !== 0) amount = 100; - - HandleUpdateButtonVisibility(amount); - - let goodValue = parseFloat(goodValueInput.value); - if (!goodValue && goodValue !== 0) goodValue = 2; - - if (amount < 800) { - GetChain(seed, amount, goodValue); - } else { - clearTimeout(timeout); - loadingDiv.innerHTML = 'Loading...'; - timeout = setTimeout(() => { - GetChain(seed, amount, goodValue); - loadingDiv.innerHTML = ''; - }, 500); - } - - UpdateSelectionWindow(); - - localStorage.setItem('amount', amount); - localStorage.setItem('goodValue', goodValue); -} - function GetChain(seed, amount = 1000, goodValue = 2) { resultsDiv.innerHTML = '';