-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
82 lines (69 loc) · 3.56 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
<html lang="en">
<head>
<title>PMDD WEB</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/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" 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/8.0.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.0.0/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.0.0/firebase-database.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.0.0/firebase-storage.js"></script>
<link rel = "icon" href = "sliot FINALS /icon.png" type = "image/x-icon">
</head>
<body>
<div class="wrapper" style="background-image: url('sliot\ FINALS/1.jpg');">
<div class="inner">
<div class="image-holder">
<img src="sliot FINALS/31.jpg" alt="">
</div>
<div action="" style="margin-left: 3%;">
<h3>Register</h3>
<div class="form-wrapper">
<input type="email" id="email" placeholder="Email Address" class="form-control">
<i class="zmdi zmdi zmdi-email"></i>
</div>
<div class="form-wrapper">
<input type="password" id="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="from-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>
</div>
</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('Users/'+userID).once('value').then(
function(snapshot){
if(snapshot.val()){
window.location.href = "test.html";
}else{
window.location.href = "accountSettings.html";
}
}
);
}
});
</script>
</body>
</html>