-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
160 lines (133 loc) · 6.91 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
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
<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="index.css">
<link href='http://fonts.googleapis.com/css?family=Montserrat:400,700%7CPT+Serif:400,700,400italic' rel='stylesheet'>
<link href="https://fonts.googleapis.com/css?family=Montserrat|Open+Sans" rel="stylesheet">
</head>
<body>
<!-- The Modal Login -->
<div id="id01" class="modal">
<span onclick="document.getElementById('id01').style.display='none'" class="close"
title="Close Modal">×</span>
<!-- Modal Content -->
<form class="modal-content animate" onSubmit="event.preventDefault();return validateLogin();">
<div class="imgcontainer">
<img src="userIcon.png" alt="Avatar" class="avatar">
</div>
<div class="container">
<label for="email"><b>Email</b></label>
<input id ="emailLogin"type="text" placeholder="Enter Username" name="email" required>
<label for="psw"><b>Password</b></label>
<input id ="passwordLogin"type="password" placeholder="Enter Password" name="psw" required>
<button id = "submit" type = "submit" >Login</button>
<label>
<input type="checkbox" checked="checked" name="remember"> Remember me
</label>
</div>
<div class="container" style="background-color:#f1f1f1">
<button type="button" onclick="document.getElementById('id01').style.display='none'"
class="cancelbtn">Cancel</button>
<span class="psw">Forgot <a href="#">password?</a></span>
</div>
</form>
</div>
<!-- The Register Modal -->
<div id="id02" class="modal">
<span onclick="document.getElementById('id02').style.display='none'" class="close"
title="Close Modal">×</span>
<!-- Modal Content -->
<form class="modal-content animate" onSubmit="event.preventDefault();return validateRegister();">
<div class="imgcontainer">
<img src="userIcon.png" alt="Avatar" class="avatar">
</div>
<div class="container">
<label for="user_name"><b>Name</b></label>
<input id="userNameRegister" type="text" placeholder="Name" name="user_name" required>
<label for="create_email"><b>Enter Email</b></label>
<input id="emailRegister" type="text" placeholder="Enter Email" name="create_email" required>
<label for="createpsw"><b>Create Password</b></label>
<input id= "passwordRegister" type="password" placeholder="Create Password" name="createpsw" required>
<label for="vpsw"><b>Verify Password</b></label>
<input id = "passwordRegister2" type="password" placeholder="Verify Password" name="vpsw" required>
<button type="submit">Register</button>
<label>
<input type="checkbox" checked="checked" name="remember"> Remember me
</label>
</div>
<div class="container" style="background-color:#f1f1f1">
<button type="button" onclick="document.getElementById('id02').style.display='none'"
class="cancelbtn">Cancel</button>
<span class="psw">Forgot <a href="#">password?</a></span>
</div>
</form>
</div>
<!-- The Admin Modal -->
<div id="id03" class="modal">
<span onclick="document.getElementById('id03').style.display='none'" class="close"
title="Close Modal">×</span>
<!-- Modal Content -->
<form class="modal-content animate" onSubmit="event.preventDefault();return validateAdmin();" >
<div class="imgcontainer">
<img src="userIcon.png" alt="Avatar" class="avatar">
</div>
<div class="container">
<label for="adminPasswordHint"><b>Admin Password</b></label>
<input id = "adminPass" type="text" placeholder="Enter Admin Password" name="adminPasswordHint" required>
<button type="submit">Login</button>
</div>
<div class="container" style="background-color:#f1f1f1">
<button type="button" onclick="document.getElementById('id03').style.display='none'"
class="cancelbtn">Cancel</button>
</div>
</form>
</div>
<!-- Main Page -->
<div class="bgimage">
<div class="text">
<h1> OVERTURE SCHEDULING </h1>
<!-- Buttons -->
<div class="menu">
<a class="button" onclick="document.getElementById('id01').style.display='block'"> User Login</a>
<a class="button" onclick="document.getElementById('id03').style.display='block'"> Admin Login</a>
<a class="button" onclick="document.getElementById('id02').style.display='block'"> User Signup</a>
</div>
</div>
</div>
<script>
var modal = document.getElementById('id01');
var modal2 = document.getElementById('id02');
var modal3 = document.getElementById('id03');
// When the user clicks anywhere outside of the modal, close it
window.onclick = function (event) {
if (event.target == modal || event.target == modal2 || event.target == modal3) {
modal.style.display = "none";
modal2.style.display = "none";
modal3.style.display = "none";
}
}
</script>
<!-- The core Firebase JS SDK is always required and must be listed first -->
<script src="https://www.gstatic.com/firebasejs/7.3.0/firebase-app.js"></script>
<!-- TODO: Add SDKs for Firebase products that you want to use
https://firebase.google.com/docs/web/setup#available-libraries -->
<script src="https://www.gstatic.com/firebasejs/7.3.0/firebase-analytics.js"></script>
<script src="/__/firebase/7.3.0/firebase-database.js"></script>
<script>
var firebaseConfig = {
apiKey: "AIzaSyADFcVF0FfSzIyZjCL0T8Wf1jH9NA_tPqM",
authDomain: "realtimedatabase-d0a3e.firebaseapp.com",
databaseURL: "https://realtimedatabase-d0a3e.firebaseio.com",
projectId: "realtimedatabase-d0a3e",
storageBucket: "realtimedatabase-d0a3e.appspot.com",
messagingSenderId: "74578194003",
appId: "1:74578194003:web:302a3001f78fd4ee84a0a6",
measurementId: "G-QVGMEM66ZC"
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
</script>
<script src = "index.js"></script>
</body>
</html>