From 24e4771a211d0dc58d04c485019eae5d4131468c Mon Sep 17 00:00:00 2001 From: DEADCRATER <86335642+DEADCRATER@users.noreply.github.com> Date: Fri, 28 Jun 2024 23:32:40 +0530 Subject: [PATCH] Update script.js sign in and sign up problem --- src/js/script.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/script.js b/src/js/script.js index b507cac..7540e6d 100644 --- a/src/js/script.js +++ b/src/js/script.js @@ -16,7 +16,7 @@ user_signin.addEventListener('click',()=>{ console.log('click') if(sign_in_email.value.length>0 && sign_in_pass.value.length>0){ let check=sign_in_email.value.split('@') - if(check[1]==="gamil.com" ||check[1]==="outlook.com"){ + if(check[1]==="gmail.com" ||check[1]==="outlook.com"){ signin_error.style.color="green" signin_error.textContent="success" } @@ -34,7 +34,7 @@ user_signup.addEventListener('click',()=>{ console.log('click') if(sign_up_email.value.length>0 && sign_up_pass.value.length>0 && sign_up_name.value.length>0){ let check=sign_up_email.value.split('@') - if(check[1]==="gamil.com" ||check[1]==="outlook.com"){ + if(check[1]==="gmail.com" ||check[1]==="outlook.com"){ signup_error.style.color="green" signup_error.textContent="success" } @@ -59,4 +59,4 @@ singin2.addEventListener('click',()=>{ }) register.addEventListener('click',()=>{ container.classList.add('active') -}) \ No newline at end of file +})