-
Notifications
You must be signed in to change notification settings - Fork 0
/
signup.html
206 lines (166 loc) · 9.95 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
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<!DOCTYPE html>
<html>
<head>
<title>FireStorm | Sign Up</title>
<link rel="icon" href="design_files/images/circle.png" sizes="32x32">
<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>
<meta name="google-signin-client_id" content="336000827720-c4m0sihp32hpr7hna4fl0rtcofkgkkhv.apps.googleusercontent.com">
<!-- 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/6.3.1/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/6.3.1/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/6.3.1/firebase-database.js"></script>
<script src="https://www.gstatic.com/firebasejs/6.3.1/firebase-storage.js"></script>
<script src='https://kit.fontawesome.com/a076d05399.js'></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<script>
function msft(){
var provider = new firebase.auth.OAuthProvider('microsoft.com');
firebase.auth().signInWithPopup(provider)
.then(function(result) {
console.log("Success");
})
.catch(function(error) {
console.log("Error : "+error);
});
}
</script>
<script>
function gth(){
var provider = new firebase.auth.GithubAuthProvider();
firebase.auth().signInWithPopup(provider)
.then(function(result) {
console.log("Success");
})
.catch(function(error) {
console.log("Error : "+error);
});
}
</script>
<script>
function googleSignIn() {
var base_provider = new firebase.auth.GoogleAuthProvider();
firebase.auth().signInWithPopup(base_provider).then(function(result){
console.log("Success");
}).catch(function(err){
console.log("Failed"+err);
});
}
</script>
<script>
function visibilityTest_1() {
var x = document.getElementById("password");
var y = document.getElementById("visible");
y.classList.toggle("fa-eye-slash");
if (x.type === "password") {
x.type = "text";
} else {
x.type = "password";
}
}
function visibilityTest_2() {
var x = document.getElementById("confirmPassword");
var y = document.getElementById("Cvisible");
y.classList.toggle("fa-eye-slash");
if (x.type === "password") {
x.type = "text";
} else {
x.type = "password";
}
}
</script>
</head>
<body>
<!--Background Image-->
<div class="wrapper" style="background-image: url('design_files/images/registerback.jpg')">
<!--White Box-->
<div class="inner" style="box-shadow: 0px 4px 4px 0px rgba(0, 118, 228, 0.2), 0px 3px 3px 0px rgba(0, 91, 177, 0.247);">
<div class="image-holder">
<!--Image Inside Box-->
<img src="design_files/images/signup.png" alt="Background">
</div>
<!--Form-->
<form action="">
<h3><img src="design_files/images/circle.png" height="28px" width="28px" alt="Brand" hspace="5px" style="margin-bottom: 5px">Sign Up</h3>
<div class="form-wrapper">
<input id="email" type="email" placeholder="Email ID" class="form-control">
<i class="zmdi zmdi-email" style="margin-right: 1%"></i>
</div>
<div class="form-wrapper">
<input id="password" type="password" placeholder="Password" class="form-control">
<i class="zmdi zmdi-lock" style="margin-right: 8%"></i>
<i class="fas fa-eye" id="visible" style="margin-right: 1%" onclick="visibilityTest_1()"></i>
</div>
<div class="form-wrapper">
<input id="confirmPassword" type="password" placeholder="Confirm Password" class="form-control">
<i class="zmdi zmdi-lock" style="margin-right: 8%"></i>
<i class="fas fa-eye" id="Cvisible" style="margin-right: 1%" onclick="visibilityTest_2()"></i>
</div>
<div class="form-group container-login100-form-btn">
<button id="btn-signup" type="button" style="margin-top: 4%">
Sign Up
<i class="zmdi zmdi-arrow-right"></i>
</button>
</div>
<div class="w-full text-center" style="margin-top: 0%; font-size: 15px;">
<a href="#" class="text-dark">
Or
</a>
</div>
<!--Google Button-->
<div class="form-group container-login100-form-btn">
<button style="background-color: transparent;height: 20px; width: 100px; margin-top: 3%;border-collapse: collapse;border-block-color: transparent">
<div class="g-signin2" onclick="googleSignIn()"></div>
</button>
</div>
<!--Microsoft Login-->
<div class="form-group container-login100-form-btn">
<button style="padding-right: 16px; margin-top:4%; background-color: white; color: lightslategrey; height: 35px; width: 120px; font-size: 11px; box-shadow: 0px 4px 4px 0px rgba(0, 118, 228, 0.2), 0px 3px 3px 0px rgba(0, 91, 177, 0.247); padding-right: 5px" id="microsoft" type="button" onclick="msft()">
<i class="fab fa-microsoft" style="margin-right:24%; animation: none; color: #4885ed; font-size: 16px;"></i>Microsoft<img hspace="5px"/>
</button>
</div>
<!--GitHub Login-->
<div class="form-group container-login100-form-btn">
<button style="padding-right: 16px; margin-top:0%; background-color: white; color: lightslategrey; height: 35px; width: 120px; font-size: 11px; box-shadow: 0px 4px 4px 0px rgba(0, 118, 228, 0.2), 0px 3px 3px 0px rgba(0, 91, 177, 0.247); padding-right: 5px" id="github" type="button" onclick="gth()">
<i class="fa fa-github" style="margin-right:24%; animation: none; color: #2d2d2d; font-size: 25px;"></i>GitHub<img hspace="10px"/>
</button>
</div>
<!--Phone Auth-->
<div class="form-group container-login100-form-btn">
<button style="margin-top:0%; background-color: white; color: lightslategrey; height: 35px; width: 120px; font-size: 11px;box-shadow: 0px 4px 4px 0px rgba(0, 118, 228, 0.2), 0px 3px 3px 0px rgba(0, 91, 177, 0.247);padding-right: 5px" id="phone-auth" type="button" onclick="window.location.href='phoneauth.html'">
<i class="material-icons" style="margin-right:14%; animation: none;color: #4885ed;">call</i>Phone Auth
</button>
</div>
<div class="w-full text-center" style="margin-top: 10%; font-size: 15px;">
<a href="signin.html" class="text-dark">
Already have an account ?
</a>
</div>
</form>
</div>
</div>
<script src="https://apis.google.com/js/platform.js" async defer></script>
<script src="js/index.js"></script>
<script src="js/phoneauth.js"></script>
<script>
firebase.auth().onAuthStateChanged(function(user){
if(user){
var userID = firebase.auth().currentUser.uid;
firebase.database().ref('Users/' + userID).once('value').then(function(snapshot){
if(snapshot.val()){
window.location.href = "index.html";
}
else {
window.location.href = "accountSettings.html";
}
});
}
});
</script>
</body>
</html>