-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmainmenu.html
391 lines (351 loc) · 14.6 KB
/
mainmenu.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
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
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
<!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">
<!-- CDN og lokal source leaflet -->
<link rel="stylesheet" href="Leaflet/leaflet.css">
<link rel="stylesheet" type="text/css" href="Leaflet/Leaflet.draw/dist/leaflet.draw.css">
<script src="Leaflet/leaflet.js"></script>
<script src="Leaflet/Leaflet.draw/dist/leaflet.draw.js"></script>
<!-- CDN bootstrap -->
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
<script src="bootstrap/js/jquery-1.12.3.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
<!--<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<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>-->
<!-- source til egne scripts -->
<script src="head/userDbHead.js" type="text/javascript"></script>
<link rel="stylesheet" href="mapal_style.css">
<script src="script.js"></script>
<script src="head/groupDBHead.js" type="text/javascript"></script>
<script src="head/locationDbHead.js" type="text/javascript"></script>
<style>
body {
background-color: #505050;
/*background-color: #f6f6f6;*/
/*opacity: 0.9;*/
}
/* .btn {
padding: 14px 24px;
border: 0 none;
font-weight: 700;
letter-spacing: 1px;
text-transform: uppercase;
}
.btn:focus, .btn:active:focus, .btn.active:focus {
outline: 0 none;
}
.btn-primary {
background: #533419;
color: #ffffff;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .open > .dropdown-toggle.btn-primary {
background: #33a6cc;
}
.btn-primary:active, .btn-primary.active {
background: #007299;
box-shadow: none;
}
.btn-primary.raised {
box-shadow: 0 3px 0 0 #007299;
}
.btn-primary.raised:active, .btn-primary.raised.active {
background: #33a6cc;
box-shadow: none;
margin-bottom: -3px;
margin-top: 3px;
}
.top-buffer {
margin-top:20px;
}
.bottomright {
position:absolute; bottom:0; margin-bottom:0px; margin:0px; right: 0;
}
.fade-in {
opacity:0;
-webkit-animation:fadeIn ease-in 1;
-moz-animation:fadeIn ease-in 1;
animation:fadeIn ease-in 1;
-webkit-animation-fill-mode:forwards;
-moz-animation-fill-mode:forwards;
animation-fill-mode:forwards;
-webkit-animation-duration:1s;
-moz-animation-duration:1s;
animation-duration:1s;
}
@-webkit-keyframes fadeIn { from { opacity:0; opacity: 1\9; /* IE9 only */ } to { opacity:1; } }
@-moz-keyframes fadeIn { from { opacity:0; opacity: 1\9; /* IE9 only */ } to { opacity:1; } }
@keyframes fadeIn { from { opacity:0; opacity: 1\9; /* IE9 only */ } to { opacity:1; } }*/
</style>
<script>
$(document).ready(function(){
showMyGroups();
});
</script>
</head>
<body onload="initSideMenu()">
<div class="jumbotron container">
</div>
<div style="position: absolute; z-index: 1; left:0.55em; top:7em" class="btn-group-vertical"> <!-- z=1 button is in front of map, but under overlay !-->
<button type="button" id="newGroup" class="btn btn-s bg-info" data-toggle="modal" data-target="#createGroupModal"><span id="drawIcon" class="glyphicon glyphicon-plus"></span></button>
<button type="button" id="joinGroup" class="btn btn-s bg-info" data-toggle="modal" data-target="#joinGroupModal"><span id="drawIcon" class="glyphicon glyphicon-piggy-bank"></span></button>
</div>
<!-- kode med carousel -->
<div id="carouselContainer" class="container-fluid text-center">
<div id="myCarousel" class="carousel slide text-center" data-interval="false">
<!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">
<div class="item active">
<div class="col-sm-4">
<h2><div id="groupName0"></div></h2>
<table class="table center" id="table0"></table>
</div>
<div class="col-sm-4">
<h2><div id="groupName1"></div></h2>
<table class="table center" id="table1"></table>
</div>
<div class="col-sm-4">
<h2><div id="groupName2"></div></h2>
<table class="table center" id="table2"></table>
</div>
</div>
<div class="item">
<div class="col-sm-4">
<h2><div id="groupName3"></div></h2>
<table class="table center" id="table3"></table>
</div>
<div class="col-sm-4">
<h2><div id="groupName4"></div></h2>
<table class="table center" id="table4"></table>
</div>
<div class="col-sm-4">
<h2><div id="groupName5"></div></h2>
<table class="table center" id="table5"></table>
</div>
</div>
<div class="item">
<div class="col-sm-4">
<h2><div id="groupName6"></div></h2>
<table class="table center" id="table6"></table>
</div>
<div class="col-sm-4">
<h2><div id="groupName7"></div></h2>
<table class="table center" id="table7"></table>
</div>
<div class="col-sm-4">
<h2><div id="groupName8"></div></h2>
<table class="table center" id="table8"></table>
</div>
</div>
</div>
<!-- Indicators -->
<ol class="carousel-indicators" style="bottom:5%">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
<li data-target="#myCarousel" data-slide-to="2"></li>
</ol>
</div>
<!-- Left and right controls -->
<a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
<!-- GAMMEL kode med knapper -->
<!-- <div class="text-center fade-in">
<div class="container">
<div class="row top-buffer">
<div class="col-sm-12">
<div class"dropdown">
<button type="button" id="ViewGroup" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#viewGroupModal" style="width: 400px"> View Group
</button> -->
<!--
<div id="collap" class="collapse">
<button type="button" id="ViewGroup1" class="btn btn-standard">Group 1 goes here</button>
<button type="button" id="ViewGroup2" class="btn btn-standard">Group 2 goes here</button>
</div>
-->
<!-- </div>
</div>
</div>
<div class="row top-buffer">
<div class="col-sm-12">
<button type="button" id="CreateArea" class="btn btn-primary btn-lg" style="width: 400px" onclick=window.open("mapPage.html","_self")> Create Area
</button>
</div>
</div>
<div class="row top-buffer">
<div class="col-sm-12">
<button type="button" id="CreateGroup" class="btn btn-primary btn-lg" style="width: 400px" data-toggle="modal" data-target="#createGroupModal"> Create Group
</button>
</div>
</div>
<div class="row top-buffer">
<div class="col-sm-12">
<button type="button" id="Settings" class="btn btn-primary btn-lg" style="width: 400px"> Settings
</button>
</div>
</div>
<div class="row top-buffer">
<div class="col-sm-12">
<button type="button" id="Credits" class="btn btn-primary btn-lg" style="width: 400px"> Credits
</button>
</div>
</div>
<div class="row top-buffer">
<div class="col-sm-12">
<button type="button" id="Credits" onClick="showMyGroups()" class="btn btn-primary btn-lg" style="width: 400px"> View my groups
</button>
</div>
</div>
</div>
<div id="demo"></div>
</div> -->
<!-- <button type="button"id="Logout"class="btn btn-danger btn-lg pull-right bottomright"style="width: 100px; height: 100px" onmouseover="myInnFunction()" onmouseout="myOutFunction()" onclick= window.open("startpage.html","_self")><span id="demo" class="glyphicon glyphicon-off"></span>
</button> -->
<!-- CREATE GROUP MODAL -->
<div class="container">
<!-- Modal -->
<div class="modal fade" id="createGroupModal" role="dialog">
<div class="vertical-alignment-helper">
<div class="modal-dialog vertical-align-center">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4><span class="glyphicon glyphicon-pencil"></span> Give your group a name</h4>
</div>
<div class="modal-body" style="padding:40px 50px;">
<form role="form">
<div class="form-group">
<label for="new_group_name"><span class="glyphicon glyphicon-globe"></span> Group name</label>
<input type="text" class="form-control" id="new_group_name" placeholder="Enter group name">
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger btn-default pull-left" data-dismiss="modal"><span class="glyphicon glyphicon-remove"></span> Cancel</button>
<button type="submit" class="btn btn-primary btn-default pull-right" data-dismiss="modal" onclick="manageGroup('newGroup')"><span class="glyphicon glyphicon-ok"></span> Submit</button>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- join GROUP MODAL -->
<div class="container">
<!-- Modal -->
<div class="modal fade" id="joinGroupModal" role="dialog">
<div class="vertical-alignment-helper">
<div class="modal-dialog vertical-align-center">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4><span class="glyphicon glyphicon-pencil"></span> Enter group code</h4>
</div>
<div class="modal-body" style="padding:40px 50px;">
<form role="form">
<div class="form-group">
<label for="check_group_name"><span class="glyphicon glyphicon-globe"></span> Group code</label>
<input type="text" class="form-control" id="check_group_name" placeholder="Enter group name">
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger btn-default pull-left" data-dismiss="modal"><span class="glyphicon glyphicon-remove"></span> Cancel</button>
<button type="submit" class="btn btn-primary btn-default pull-right" data-dismiss="modal" onclick="joinGroup()"><span class="glyphicon glyphicon-ok"></span> Submit</button>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- SIDE MENU -->
<div id="wrapper">
<div class="overlay"></div>
<!-- Sidebar -->
<nav class="navbar navbar-inverse navbar-fixed-top" id="sidebar-wrapper" role="navigation">
<ul class="nav sidebar-nav">
<li class="sidebar-brand">
<a>
Mapal
</a>
</li>
<li>
<button class="sideMenuButton" onClick="openMainMenu()"><span class="glyphicon glyphicon-home"></span> Show groups</button>
</li>
<!-- <li>
<button class="sideMenuButton"><span class="glyphicon glyphicon-eye-open"></span> [View groups]</button>
</li> -->
<li>
<button class="sideMenuButton" onClick="openMapPage()"><span class="glyphicon glyphicon-globe"></span> Create location</button>
</li>
<!-- <li>
<button class="sideMenuButton"><span class="glyphicon glyphicon-plus"></span> [Create group]</button>
</li> -->
<!-- <li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Works <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li class="dropdown-header">Dropdown heading</li>
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li><a href="#">Separated link</a></li>
<li><a href="#">One more separated link</a></li>
</ul>
</li> -->
<li>
<button class="sideMenuButton"><span class="glyphicon glyphicon-cog"></span> Settings</button>
</li>
<li>
<button class="sideMenuButton" onClick="emailpage()"><span class="glyphicon glyphicon-envelope"></span> Contact</button>
</li>
<li>
<button class="sideMenuButton" onClick="getLogOutModal()"><span class="glyphicon glyphicon-log-out"></span> Log out</button>
</li>
</ul>
</nav>
<!-- /#sidebar-wrapper -->
<!-- Page Content -->
<div id="page-content-wrapper">
<button type="button" class="hamburger is-closed" data-toggle="offcanvas">
<span class="hamb-top"></span>
<span class="hamb-middle"></span>
<span class="hamb-bottom"></span>
</button>
</div>
<!-- /#page-content-wrapper -->
</div>
<!-- /#wrapper -->
<div class="container">
<!-- log out modal -->
<div class="modal fade" id="logOutModal" role="dialog">
<div class="vertical-alignment-helper">
<div class="modal-dialog vertical-align-center">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-body" style="padding:1em 3em 3em 3em;">
<h3 style="text-align: center">Are you sure you want to log out?</h3>
<button type="button" class="btn btn-danger btn-default pull-right" data-dismiss="modal" ><span class="glyphicon glyphicon-remove"></span> Cancel</button>
<button type="button" class="btn btn-primary btn-default pull-left" data-dismiss="modal" onclick="logOutFunction()"><span class="glyphicon glyphicon-ok"></span> Yes</button>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>