-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
97 lines (86 loc) · 3.5 KB
/
index.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Welcome</title>
<!-- Styles -->
<link rel="stylesheet" href="./css/styles.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<h2>Firebase Authentication & Cloud Storage</h2>
<!-- <p>To make the tabs toggleable, add the data-toggle="tab" attribute to each link. Then add a .tab-pane class with a unique ID for every tab and wrap them inside a div element with class .tab-content.</p> -->
<ul class="nav nav-tabs">
<li class="active"><a data-toggle="tab" href="#home">Home</a></li>
<li><a data-toggle="tab" href="#login">Log In</a></li>
<li><a data-toggle="tab" href="#register">Register </a></li>
</ul>
<div class="tab-content">
<div id="home" class="tab-pane fade in active">
<h3>HOME</h3>
<p>This is a sample app.</p>
<button class="btn btn-default" onclick="getUserProfile()">Get profile</button>
</div>
<div id="login" class="tab-pane fade">
<div id="message">
<h2>Welcome</h2>
<h1>Enter your credentials to log in</h1>
<div>
<form>
<div class="form-group">
<label for="emailLogin">Email address</label>
<input type="emailLogin" class="form-control" id="emailLogin" placeholder="Enter email">
</div>
<div class="form-group">
<label for="passwordLogin">Password</label>
<input type="password" class="form-control" id="passwordLogin" placeholder="Password">
</div>
</form>
</div>
<div class="text-center">
<button type="button" class="btn btn-success" onclick="loginUser()">Log In</button>
</div>
</div>
</div>
<div id="register" class="tab-pane fade">
<div id="message">
<h2>Welcome</h2>
<h1>Create a new account</h1>
<div>
<form>
<div class="form-group">
<label for="emailRegister">Email address</label>
<input type="emailRegister" class="form-control" id="emailRegister" placeholder="Enter email">
</div>
<div class="form-group">
<label for="passwordRegister">Password</label>
<input type="password" class="form-control" id="passwordRegister" placeholder="Password">
</div>
</form>
</div>
<div class="text-center">
<button type="button" class="btn btn-primary" onclick="registerUser()">Register</button>
</div>
</div>
</div>
</div>
</div>
<!-- The core Firebase JS SDK is always required and must be listed first -->
<script src="https://www.gstatic.com/firebasejs/8.0.2/firebase.js"></script>
<!-- TODO: Add SDKs for Firebase products that you want to use
https://firebase.google.com/docs/web/setup#available-libraries -->
<script>
// Your web app's Firebase configuration
var firebaseConfig = {
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
</script>
<script src="js/login.js"></script>
<script src="js/register.js"></script>
</body>
</html>