diff --git a/front/static/signup.html b/front/static/signup.html index a8905a4..4db8d4b 100644 --- a/front/static/signup.html +++ b/front/static/signup.html @@ -18,18 +18,5 @@ Return to main menu - + \ No newline at end of file diff --git a/front/static/signupPage.js b/front/static/signupPage.js new file mode 100644 index 0000000..be8ca6c --- /dev/null +++ b/front/static/signupPage.js @@ -0,0 +1,12 @@ +var password = document.getElementById("password"); +var confirm_password = document.getElementById("confirmPassword"); +function validatePassword(){ + if(password.value != confirm_password.value) { + confirm_password.setCustomValidity("Passwords Don't Match"); + } + else { + confirm_password.setCustomValidity(''); + } +} +password.onchange = validatePassword; +confirm_password.onkeyup = validatePassword; \ No newline at end of file