diff --git a/homeworks/sviatoslav.taranenko_SviatoslavTaranenko/GamesProject/scripts/script.js b/homeworks/sviatoslav.taranenko_SviatoslavTaranenko/GamesProject/scripts/script.js index 4364f372..cdbe80fa 100644 --- a/homeworks/sviatoslav.taranenko_SviatoslavTaranenko/GamesProject/scripts/script.js +++ b/homeworks/sviatoslav.taranenko_SviatoslavTaranenko/GamesProject/scripts/script.js @@ -83,8 +83,7 @@ function isEmail(email) { return emailText.test(showEmail); } -function validateForm(){ - +function validateForm() { deleteErrorsCheckbox(); deleteErrorsEmail(); deleteErrorsPassword(); @@ -114,7 +113,5 @@ function validateForm(){ navigateToResultPage(); } } - validateForm(); - submitButton.onclick = validateForm;