-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcheck.html
More file actions
297 lines (258 loc) · 11.6 KB
/
check.html
File metadata and controls
297 lines (258 loc) · 11.6 KB
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
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>The Easiest Way to Add Input Masks to Your Forms</title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/simple-line-icons/2.4.1/css/simple-line-icons.min.css"
rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<link rel="stylesheet" href="style.css">
<!-- <script type="text/javascript">
$(document).ready(function() {
$('#number').attr("disabled", true);
});
$(document).ready(function() {
$('#signup').attr("disabled", true);
});
</script> -->
</head>
<body>
<div class="registration-form">
<form id="form">
<h2 style="text-align: center;">Fill your details</h2>
<!-- <div class="form-icon">
<span><i class="icon icon-user"></i></span>
</div> -->
<div class="form-group"></div>
<!-- <div class="signupbtn" style="text-align:center"> -->
<!-- <img src="images/icon-google.png" alt="GOOGLE">
<input type="button" value="Sign up using Google" class="btn" id="signupgoogle" > -->
<!-- <div class="signupbtn" style="text-align:center">
<a class="btn-google m-b-20" id="signupgoogle">
<img src="images/icon-google.jpg" alt="">
Sign up using Google
</a>
</div> -->
<!-- </div> -->
<!-- <div style="width: 100%; height: 20px; border-bottom: 1px solid black; text-align: center">
<span style="font-size: 20px; background-color: #F3F5F6; padding: 0 10px; border-radius: 50%;">
or
</span>
</div>
<br> -->
<div class="form-group">
<input type="text" class="form-control item" id="college" placeholder="College" required>
</div>
<div class="form-group">
<input type="text" class="form-control item" id="branch" placeholder="Branch" required>
</div>
<select class="form-control item" placeholder="Graduation Year" required name="year" id="year"
style="padding: 0 18px; height: 47px;">
<option value="2022">Graduation Year</option>
<option value="2023">2023</option>
<option value="2024">2024</option>
<option value="2025">2025</option>
<option value="2026">2026</option>
</select>
<input required="" type="text" class="form-control item" id="dateofbirth" placeholder="Date of Birth"
required onfocus="(this.type='date')" />
<!-- <div class="form-group">
<input type="text" class="form-control item" id="year" placeholder="Graduation Year" required> -->
<!-- <label for="year" class="form-control item"></label>
<select name="year" id="year">
<option value="2022">Graduation Year</option>
<option value="2022">2022</option>
<option value="2023">2023</option>
<option value="2024">2024</option>
<option value="2025">2025</option>
<option value="2026">2026</option>
</select> -->
<!-- </div> -->
<!-- <div class="form-group">
<input required="" type="text" class="form-control item" id="dateofbirth" placeholder="Date of Birth" required onfocus="(this.type='date')"/>
</div> -->
<!-- <div class="form-group">
<!-- <input type="tel" class="form-control item" id="phone-number" placeholder=" Phone Number 12345 12345" pattern="[0-9]{3} [0-9]{3} [0-9]{4} " maxlength="12" > -->
<!-- <input type="tel" class="form-control item" name="phone" id="phone" placeholder="0123456789" pattern="[0-9]{10}" maxlength="10" required>
</div> -->
<!-- <div class="form-group">
<input type="text" class="form-control item" id="birth-date" placeholder="Birth Date">
</div> -->
<!--<div id="recaptcha-container"></div>
<div class="form-group">
<button onclick="enable()" type="button" class="btn btn-block create-account" id="number" disabled >Send OTP</button>
</div> -->
<!-- <input type="tel" id="phoneNumber" />
<input type="text" id="code" />
<button id="sign-in-button" onclick="submitPhoneNumberAuth()">
SIGN IN WITH PHONE
</button>
<button id="confirm-code" onclick="submitPhoneNumberAuthCode()">
ENTER CODE
</button>
<div id="recaptcha-container"></div> -->
<!-- onclick="phoneAuth();" -->
<!-- <div class="form-group">
<input type="text" class="form-control item" id="otp" placeholder="Enter OTP" disabled required>
</div>
<div class="form-group">
<input type="password" class="form-control item" id="password" placeholder="Password" disabled required>
</div>
<div class="form-group">
<input type="password" class="form-control item" id="confirm_password" placeholder="Confirm Password" disabled required>
</div> -->
<!-- <div class="form-group" >
<label>
<input type="checkbox" /> By clicking Agree and Continue, I hereby, agree and consent to the Privacy Policy and the Terms of Use.
</label>
</div> -->
<div class="form-group">
<!-- <button type="button" class="btn btn-block create-account" id="signup">Sign Up</button> -->
<button type="submit" class="btn btn-block create-account" onclick="UserRegister()" id="signup">Sign
Up</button>
</div>
</form>
</div>
<!-- <script type="text/javascript" src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery.mask/1.14.15/jquery.mask.min.js"></script>
<script src="registration/assets/js/script.js"></script> -->
</body>
<!-- Add the latest firebase dependecies from CDN -->
<script src="https://www.gstatic.com/firebasejs/6.3.3/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/6.3.3/firebase-auth.js"></script>
<script>
// Paste the config your copied earlier
// var firebaseConfig = {
// apiKey: "AIzaSyANR7U1ySRA4A1LKjw9mxX85FGA3d-afAM",
// authDomain: "studnet-bad12.firebaseapp.com",
// projectId: "studnet-bad12",
// storageBucket: "studnet-bad12.appspot.com",
// messagingSenderId: "233784538071",
// appId: "1:233784538071:web:465d7c71723bafc1de5192",
// databaseURL: "https://medium-d924f.firebaseio.com"
// };
// firebase.initializeApp(firebaseConfig);
// Create a Recaptcha verifier instance globally
// Calls submitPhoneNumberAuth() when the captcha is verified
// window.recaptchaVerifier = new firebase.auth.RecaptchaVerifier(
// "recaptcha-container",
// {
// size: "normal",
// callback: function(response) {
// submitPhoneNumberAuth();
// }
// }
// );
// // This function runs when the 'sign-in-button' is clicked
// // Takes the value from the 'phoneNumber' input and sends SMS to that phone number
// function submitPhoneNumberAuth() {
// // var phoneNumber = document.getElementById("phoneNumber").value;
// var phoneNumber = '+917428218830';
// var appVerifier = window.recaptchaVerifier;
// firebase
// .auth()
// .signInWithPhoneNumber(phoneNumber, appVerifier)
// .then(function(confirmationResult) {
// window.confirmationResult = confirmationResult;
// })
// .catch(function(error) {
// console.log(error);
// });
// }
// This function runs when the 'confirm-code' button is clicked
// Takes the value from the 'code' input and submits the code to verify the phone number
// Return a user object if the authentication was successful, and auth is complete
// function submitPhoneNumberAuthCode() {
// // var code = document.getElementById("code").value;
// var code='101010';
// confirmationResult
// .confirm(code)
// .then(function(result) {
// var user = result.user;
// console.log(user);
// if(document.getElementById("code").value==code){
// alert('hello');
// }
// })
// .catch(function(error) {
// console.log(error);
// });
// }
//This function runs everytime the auth state changes. Use to verify if the user is logged in
// firebase.auth().onAuthStateChanged(function(user) {
// if (user) {
// console.log("USER LOGGED IN");
// } else {
// // No user is signed in.
// console.log("USER NOT LOGGED IN");
// }
// });
// </script>
<!-- <script>
function enable(){
document.getElementById("otp").disabled = "";
document.getElementById("password").disabled = "";
document.getElementById("confirm_password").disabled = "";
}
</script> -->
<!-- <script>
var fields = " #college, #branch, #year ,#dateofbirth ,#phone";
var final= "#otp , #password ,#confirm_password ";
$(fields).on('change', function() {
if (allFilled()) {
$('#number').removeAttr('disabled');
} else {
$('#number').attr('disabled', 'disabled');
}
});
$(final).on('change', function() {
if (Filled()) {
$('#signup').removeAttr('disabled');
} else {
$('#signup').attr('disabled', 'disabled');
}
});
function allFilled() {
var filled = true;
$(fields).each(function() {
if ($(this).val() == '') {
filled = false;
}
});
return filled;
}
function Filled() {
var filled = true;
$(final).each(function() {
if ($(this).val() == '') {
filled = false;
}
});
return filled;
}
</script> -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<!-- <script type="text/javascript">
$(function () {
$("#signup").click(function () {
var password = $("#password").val();
var confirmPassword = $("#confirm_password").val();
if (password != confirmPassword) {
alert("Passwords do not match.");
return false;
}
return true;
}
);
});
</script> -->
<script src="https://www.gstatic.com/firebasejs/8.6.1/firebase.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.6.1/firebase-analytics.js"></script>
<script src="registration/assets/js/auth2.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="server.js"></script>
</body>
<!-- <script src="registration/assets/js/auth2.js"></script> -->
</html>