diff --git a/index.html b/index.html index 796a625629cac869c474676ab265f036d7a11e53..e04e6852ba3a21d829ce7c98cdc77fcf990a98da 100644 --- a/index.html +++ b/index.html @@ -61,7 +61,13 @@ cuberoot.addEventListener("keydown", function (e) { if (e.keyCode === 13) { check_cuberoot(e); } -}) +}); + +cuberoot.addEventListener("keyup", function (e) { + if (cuberoot.value.length >= 2) { + check_cuberoot(e); + } +}); function humanize_ms(ms) { if (ms < 1000) {