-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
131 lines (119 loc) · 5.58 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<!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" />
<link rel="stylesheet" href="css//bootstrap.css" />
<link rel="stylesheet" href="css/forms.css" />
<link rel="stylesheet" href="font.awesome/css/all.css" />
<link rel="shortcut icon" href="favicon.png" type="image/x-icon">
<script src="https://www.gstatic.com/firebasejs/7.3.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.3.0/firebase-database.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.3.0/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.3.0/firebase-messaging.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.3.0/firebase-storage.js"></script>
<script type='text/javascript' src="scripts/config.js"></script>
<!-- Include Firebase remote sdk links to app -->
<!-- <script defer src="/__/firebase/7.2.3/firebase-auth.js"></script> -->
<!-- <script defer src="/__/firebase/7.2.3/firebase-messaging.js"></script> -->
<!-- <script defer src="/__/firebase/7.2.3/firebase-storage.js"></script> -->
<!-- <script defer src="/__/firebase/7.2.3/firebase-database.js"></script> -->
<title>Hala-Me</title>
</head>
<body>
<!-- Initialize Firebase Database with index.html -->
<!-- <script>
document.addEventListener('DOMContentLoaded', function () {
// // 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
// // The Firebase SDK is initialized and available here!
// firebase.auth().onAuthStateChanged(user => { });
// firebase.database().ref('/path/to/ref').on('value', snapshot => { });
// firebase.messaging().requestPermission().then(() => { });
// firebase.storage().ref('/path/to/ref').getDownloadURL().then(() => { });
// // 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
-->
<div class="container">
<div class="d-flex justify-content-center h-100">
<!-- Sign Up form begins Here -->
<div id="sign-up-form" style="display: none" class="card">
<div class="card-header">
<h3>Sign Up</h3>
</div>
<div class="card-body">
<form id="su_form" name="up" method="POST">
<div class="input-group form-group">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fas fa-user"></i></span>
</div>
<input type="text" id="up_name" name="username" class="form-control" placeholder="username" />
</div>
<div class="input-group form-group">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fas fa-mail-bulk"></i></span>
</div>
<input type="email" name="email" id="up_email" class="form-control" placeholder="Email" />
</div>
<div class="input-group form-group">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fas fa-key"></i></span>
</div>
<input type="password" name="password" id="up_pass" class="form-control" placeholder="password" />
</div>
<div class="form-group">
<button value="Sign Up" type="submit" name="signup" class="btn float-right login_btn">
Sign Up
</button>
</div>
</form>
</div>
<div class="card-footer">
<div class="d-flex justify-content-center links">
Already Have An account?<a href="javascript:void(0)" id='sign-link'>Sign In</a>
</div>
</div>
</div>
<!-- Sign Up form Ends Here -->
<!-- Sign In form Begins Here -->
<div id="sign-in-form" class="card">
<div class="card-header">
<h3>Sign In</h3>
</div>
<div class="card-body">
<form id="li_form" name="in" method="POST">
<div class="input-group form-group">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fas fa-user"></i></span>
</div>
<input type="email" required id="in_email" name="useremail" class="form-control" placeholder="username" />
</div>
<div class="input-group form-group">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fas fa-key"></i></span>
</div>
<input type="password" required id="in_password" name="password" class="form-control"
placeholder="password" />
</div>
<div class="form-group">
<button type="submit" name="login" class="btn float-right login_btn">
Login
</button>
</div>
</form>
</div>
<div class="card-footer">
<div class="d-flex justify-content-center links">
Don't have an account?<a href="javascript:void(0)">Sign Up</a>
</div>
</div>
</div>
<!-- Sign In Form Ends Here -->
<!-- Message Activity Can begin here Provided I want to make a single page application -->
</div>
</div>
<script src="./js/jquery-3.4.1.js"></script>
<script src="./js/bootstrap.min.js"></script>
<script src="./scripts/script.js"></script>
<script src="./scripts/form_handler.js"></script>
</body>
</html>