Why is my alert not coming g and info not saving in firebase
Ngân sách $10-30 USD
Why is my alert not coming when click on button an also my email and password are not saving in firebase i have entered the code right and also how can i save my username to firebase too and this is the user info on firebase I have written everything right I don't think there NY problem with my sign up() function but I don't know pls help HTML:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" href="[login to view URL]"></link>
<script src="[login to view URL]"></script>
<script src="[login to view URL]"></script>
<script src="[login to view URL]"></script>
</head>
<body>
<div class="pe" id="pe">
<h1>?ORGANIC PE?</h1>
<h1>?SIGN UP</h1>
</div>
<form class="form" id="form">
<div class="user" id="user">
<input type="text" id="username" placeholder="Username" required><
</div>
<div class="first">
<input type="text" id="email" placeholder="ENTER EMAIL" required>
</div>
<div class="second" id="second">
<input type="text" id="password" placeholder="ENTER PASSWORD" required>
</div>
<div class="confirm" id="confirm">
<input type="text" id="password" placeholder=" CONFIRM PASSWORD" >
</div>
<div class="submit">
<button onclick="signup()" class="button" id="signup">?Sign Up</button>
</div>
<div class="cancel" id="cancel">
<input onclick="signup()" type="button" value="Cancel"></input>
</div>
<div class="login" id="login">
<p>Already have an account <a href="#">Login</a></p>
</div>
</form>
<h3><a href="#"><-Go back</a></h3>
</body>
</html
CSS:
body {
background-image: url("/[login to view URL]");
opacity: 5;
background-size: cover;
height: 1000px;
background-repeat: no-repeat;
background-position: center;
}
.pe {
text-align: center;
}
.form {
background-color: #d67915;
text-align: center;
width: 250px;
margin-left: auto;
margin-right: auto;
margin-top: 150px;
box-shaddow: inset 20px 20px grey;
border-radius: 10px;
}
.button {
padding: 20px;
background-color: black;
border: none;
color: white;
border-radius: 10px;
width: 200px;
}
Input[type="button"] {
padding: 20px;
background-color: black;
border: none;
color: white;
border-radius: 10px;
width: 200px;
}
Input[type="text"] {
padding: 5px;
placeholder-color: white;
border-radius: 10px;
}
div {
padding: 10px;
h3 {
background-color: black;
width: 150px;
color: white;
margin-top: 200px;
}
Js:
// Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
var firebaseConfig = {
apiKey: "AIzaSyA5I9yq34ZG2tcOn5sF0liUl3AT-5IEo1I",
authDomain: "[login to view URL]",
projectId: "organic-pe-form",
storageBucket: "[login to view URL]",
messagingSenderId: "110093275502",
appId: "1:110093275502:web:7da956de064d38e171f17f",
measurementId: "G-VSLN8C4FG9"
};
// Initialize Firebase
[login to view URL](firebaseConfig);
[login to view URL]();
const auth = [login to view URL]();
function signup() {
var email = [login to view URL]("email");
var password = [login to view URL]("password");
const promise = [login to view URL]([login to view URL], [login to view URL]);
[login to view URL](e => alert([login to view URL]));
alert("signed in");
}
8 freelancer chào giá trung bình$62 cho công việc này
Hey, I am a web expert who have an experience of 7+ years in all web part. Also, I have ever been hosting on firebase, and I was solved hard problem with firebase support team. Thanks for your time. This problem can so Thêm
✤✤✤ Web Developer 7 years Exp ✤✤✤ I can do this task and will start working on it right now! I have excellent knowledge on web technologies PHP,Javascript,WordPress,HTML, CSS,Angular, MySQL, APIS based Thêm
Hope you are doing well, i am an android developer with experience of more than 2 years and i have worked with firebase a lot.I will fix your issue within [login to view URL] have more discussion in chat room.
I have already solved your issue. I can deliver it to you as soon as you want. Hope to hear from you soon. Regards, Gourab
it's very small issue. i wouldn't charge you much like others. i have FireBase experience for last 3years I can Start right now :) I have understood your requirements and i want to take this project. I'm an experien Thêm
Hello Sir I checked your code. and I this have missing some setting in firebase. I have good knowledge in firebase. Fir further please contact me I will help you..