Skip to content

Commit

Permalink
changes done
Browse files Browse the repository at this point in the history
  • Loading branch information
hussainshamim16 authored Jul 18, 2024
1 parent e7ba969 commit f225580
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ submit.addEventListener('click', async () => {

let email = document.getElementById('email').value;
let pasword = document.getElementById('password').value;


if(!email){
alert("Enter Email !!");
return;
Expand All @@ -43,7 +43,13 @@ submit.addEventListener('click', async () => {
const collect = collection(db, "user");
const response = await addDoc(collect,data)
console.log(response)
let visible = document.getElementById('visible');
let cnt = document.getElementById('cnt');
cnt.className = "hide";
visible.className = "submit show";
// console.log(email, pasword)
// email.value = ''
// pasword.value = ''
}

})

0 comments on commit f225580

Please sign in to comment.