diff --git a/static/js/autoReload.js b/static/js/autoReload.js index c998169..8e45ddc 100644 --- a/static/js/autoReload.js +++ b/static/js/autoReload.js @@ -17,14 +17,8 @@ function autoReload() { el.addEventListener('change', checkForm, { once: true }); }); - const choices = []; - function checkForm(e) { - item = e.target.id.charAt(1); - if (choices.indexOf(item) === -1) { - choices.push(item); - } - if (choices.length === 5) { + if (document.querySelectorAll('input[type="radio"]:checked').length == 5) { countdown(); } }