-
Notifications
You must be signed in to change notification settings - Fork 0
/
signup.html
95 lines (77 loc) · 3.5 KB
/
signup.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
<!DOCTYPE html>
<html>
<head>
<title>TOD Admin</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha256-3edrmyuQ0w65f8gfBsqowzjJe2iM6n0nKciPUp8y+7E=" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
crossorigin="anonymous"></script>
<!-- MATERIAL DESIGN ICONIC FONT -->
<link rel="stylesheet"
href="design_files/fonts/material-design-iconic-font/css/material-design-iconic-font.min.css">
<!-- STYLE CSS -->
<link rel="stylesheet" href="design_files/css/style.css">
<script src="https://www.gstatic.com/firebasejs/7.11.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.11.0/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.11.0/firebase-database.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.11.0/firebase-storage.js"></script>
</head>
<body>
<div class="wrapper" style="background-image: url('design_files/images/registerback.jpg')">
<div class="inner">
<div class="image-holder">
<img src="design_files/images/register-form-1.jpg">
</div>
<form action="">
<h3>Register</h3>
<div class="form-wrapper">
<input id="email" type="email" placeholder="Email Address" class="form-control">
<i class="zmdi zmdi zmdi-email"></i>
</div>
<div class="form-wrapper">
<input id="password" type="password" placeholder="Password" class="form-control">
<i class="zmdi zmdi zmdi-lock"></i>
</div>
<div class="form-wrapper">
<input id="confirmPassword" type="password" placeholder="Confirm Password" class="form-control">
<i class="zmdi zmdi zmdi-lock"></i>
</div>
<div class="form-group container-login100-form-btn">
<button id="btn-signup" type="button">
Register
<i class="zmdi zmdi-arrow-right"></i>
</button>
</div>
<div class="w-full text-center" style="margin-top: 49%; font-size: 15px;">
<a href="signin.html" class="text-dark">
Already have an account ?
</a>
</div>
</form>
</div>
</div>
<script src="js/index.js"></script>
<script>
firebase.auth().onAuthStateChanged(function (user)
{
if (user)
{
var userID =firebase.auth().currentUser.uid;
firebase.database().ref('Admin/' + userID).once('value').then(function(snapshot)
{
if(snapshot.val())
{
window.location.href = "MainPage.html";
}
else
{
window.location.href = "accountSettings.html";
}
});
}
});
</script>
</body>