-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.html
43 lines (36 loc) · 1.38 KB
/
main.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<html>
<head>
<title>Firebase Login</title>
<link href="https://fonts.googleapis.com/css?family=Nunito:400,600,700" rel="stylesheet">
<link rel="stylesheet" href="style.css" />
</head>
<body onload="getuserdata()">
<div id="login_div" class="main-div">
<h3>Firebase Web login Example</h3>
<input type="email" placeholder="Email..." id="email_field" />
<input type="password" placeholder="Password..." id="password_field" />
<button onclick="login()">Login to Account</button>
</div>
<div id="user_div" class="loggedin-div">
<h3>Welcome User</h3>
<p id="user_para">Welcome to OEP. You're currently logged in.</p>
<button onclick="logout()">Logout</button>
</div>
<script src="https://www.gstatic.com/firebasejs/8.2.1/firebase.js"></script>
<script>
var firebaseconfig = {
apiKey: "AIzaSyCJL8ulu_ZI6kd0cih_-d6tfqDBuV5hYEY",
authDomain: "oepproject-10f9c.firebaseapp.com",
databaseURL: "https://oepproject-10f9c-default-rtdb.firebaseio.com",
projectId: "oepproject-10f9c",
storageBucket: "oepproject-10f9c.appspot.com",
messagingSenderId: "121866197936",
appId: "1:121866197936:web:1ef8b37dcb558ff2519475",
measurementId: "G-NNG1BQL498"
};
firebase.initializeApp(firebaseconfig);
</script>
<script src="firebase.js"></script>
<script src="main.js"></script>
</body>
</html>