-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstartpage.html
237 lines (219 loc) · 8.47 KB
/
startpage.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Mapal</title>
<link rel="shortcut icon" type="image/x-icon" href="graphics/headerlogo.ico" />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0-beta1/jquery.min.js"></script>
<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
<script src="bootstrap/js/bootstrap.js"></script>
<script src="bootstrap/js/npm.js"></script>
<script src="head/userDbHead.js" type="text/javascript"></script>
<style>
.jumbotron {
position: relative;
background: url("graphics/Logo-white.png") center center no-repeat;
width: 100%;
height: 275px;
background-size:53%;
overflow: hidden;
/* background-color: #f4511e;
color: #fff
*/ }
body {
background-color: #000000;
background: url("graphics/spinningearthfirstframe.JPG") center center no-repeat;
background-position: top;
width: 100%;
height: 100%;
background-size: 50%;
}
.fullscreen-bg {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
overflow: hidden;
z-index: -100;
}
.fullscreen-bg__video {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
@media (min-aspect-ratio: 16/9) {
.fullscreen-bg__video {
height: 300%;
top: -100%;
}
}
@media (max-aspect-ratio: 16/9) {
.fullscreen-bg__video {
width: 300%;
left: -100%;
}
}
@media (max-width: 767px) {
.fullscreen-bg {
background: url('graphics/spinningearthfirstframe.JPG') center center / cover no-repeat;
}
.fullscreen-bg__video {
display: none;
}
.bottomaligned {
position:absolute; bottom:0; margin-bottom:7px; margin:7px; left: center;
}
}
#LoginButton {
/*background-color: #ffffff;*/
background-color: rgba(50, 175, 255, 0.5);
color: #ffffff;
border-color: #000000;
}
#NewUserButton {
background-color: rgba(50, 175, 255, 0.5);
color: #ffffff;
border-color: #000000;
}
</style>
</head>
<script>
function clearFunction(){
document.getElementById("login_user_name").value = "";
document.getElementById("login_pwd").value = "";
document.getElementById("new_user_name").value = "";
document.getElementById("new_email").value = "";
document.getElementById("new_pwd").value = "";
}
</script>
<body>
<div class="jumbotron container">
</div>
<div class="fullscreen-bg">
<video loop muted autoplay poster="graphics/spinningearthfirstframe.JPG" class="fullscreen-bg__video">
<source src="graphics/Spinningearth.webm" type="video/webm">
<source src="graphics/Spinningearth.mp4" type="video/mp4">
<source src="graphics/Spinningearth.ogv" type="video/ogg">
</video>
</div>
<div class="container">
<div class="text-center">
<h2 style="color:#FFFFFF"> Welcome to Mapal </h2>
<div class="text-center">
<div class="btn-group-lg">
<button type="button" id="LoginButton" class="btn btn-primary" style="width: 150px" data-toggle="modal" data-target="#myLogInModal">Log in
</button>
<!-- Modal -->
<div class="modal fade" id="myLogInModal" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header" style="padding:35px 50px;">
<button type="reset" class="close" data-dismiss="modal" onclick="clearFunction()">×</button>
<h4><img src="graphics/Logo-black-small.png"></img></h4>
</div>
<div class="modal-body" style="padding:40px 50px;">
<form role="form">
<div class="form-group">
<label for="login_user_name"><span class="glyphicon glyphicon-user"></span> Username</label>
<input type="text" class="form-control" id="login_user_name" placeholder="Enter username">
</div>
<!--
<div class="form-group">
<label for="email"><span class="glyphicon glyphicon-envelope"></span> Email</label>
<input type="text" class="form-control" id="email" placeholder="Enter email">
</div>
-->
<div class="form-group">
<label for="login_pwd"><span class="glyphicon glyphicon-eye-open"></span> Password</label>
<input type="password" class="form-control" id="login_pwd" placeholder="Enter password">
</div>
<!--<div class="checkbox">
<label><input type="checkbox" value="" checked>Remember me</label>
</div>-->
<!--TO BE CHANGED-->
<button type="button" id="LogIn" class="btn btn-success btn-block" onclick="manageUser('getUser')">
<!-- onclick= window.open("mainmenu.html","_self") -->
<span class="glyphicon glyphicon-off"></span> Login</button>
</form>
</div>
<div class="modal-footer">
<button type="reset" class="btn btn-danger btn-default pull-left" data-dismiss="modal" onclick="clearFunction()"><span class="glyphicon glyphicon-remove"></span> Cancel</button>
<p>Not a member? <a href="#" data-toggle="modal" data-target="#myNewUserModal" >Sign Up</a></p>
</div>
</div>
</div>
</div>
<button type="button" id="NewUserButton" class="btn btn-primary" style="width: 150px" data-toggle="modal" data-target="#myNewUserModal">New User</button>
<!-- Modal -->
<div class="modal fade" id="myNewUserModal" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header" style="padding:35px 50px;">
<button type="button" class="close" data-dismiss="modal" onclick="clearFunction()">×</button>
<h4><img src="graphics/Logo-black-small.png"></img></h4>
</div>
<div class="modal-body" style="padding:40px 50px;">
<form role="form">
<div class="form-group">
<label for="new_user_name"><span class="glyphicon glyphicon-user"></span> Username</label>
<input type="text" class="form-control" id="new_user_name" placeholder="Enter username">
</div>
<div class="form-group">
<label for="new_email"><span class="glyphicon glyphicon-envelope"></span> Email</label>
<input type="text" class="form-control" id="new_email" placeholder="Enter email">
</div>
<div class="form-group">
<label for="new_pwd"><span class="glyphicon glyphicon-eye-open"></span> Password</label>
<input type="password" class="form-control" id="new_pwd" placeholder="Enter password">
</div>
<!--<div class="checkbox">
<label><input type="checkbox" value="" checked>Remember me</label>
</div>-->
<!--TO BE CHANGED-->
<button type="button" id="NewUser" class="btn btn-success btn-block" onclick="manageUser('newUser')">
<!-- onclick= window.open("mainmenu.html","_self") -->
<span class="glyphicon glyphicon-off"></span> Create User</button>
</form>
</div>
<div class="modal-footer">
<button type="reset" class="btn btn-danger btn-default pull-left" data-dismiss="modal" onclick="clearFunction()"><span class="glyphicon glyphicon-remove"></span> Cancel</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p id="errormessage"></p><br/>
</div>
<div class="container bottomaligned">
<div class="text-center">
<button type="button" id="info" class="btn btn-link bottomaligned" style="color:#FFFFFF" data-toggle="modal" data-target="#whatisModal">What is Mapal?</button>
<!-- Add Modal with .txt document here -->
<div class="modal fade" id="whatisModal" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header" style="padding:35px 50px;">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4><img src="graphics/Logo-black-small.png"></img></h4>
</div>
<div class="modal-body" style="padding:40px 50px;">
<div id="list">
<p><iframe src="WhatisMapal.txt" frameborder="0" height="400"
width="95%"></iframe></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>