-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathabout.php
91 lines (84 loc) · 3.78 KB
/
about.php
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
<!DOCTYPE html>
<html>
<head>
<title>Crowd Density Mapper</title>
<link rel="icon" href="favicon.ico" />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/bootstrap.min.css" />
<link rel="stylesheet" href="css/leaflet.css" />
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<!--navbar settings -->
<nav class="navbar navbar-fixed-top navbar-default">
<div class="container-fluid">
<!-- Toggle for better mobile display -->
<div class="navbar-header">
<p class="navbar-brand navbar-center"><strong>Crowd Density Mapper</strong></p>
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <!--aria-expanded="true" aria-controls="navbar">-->
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="favicon.ico">
<img src="favicon.ico" width="25" height="25">
</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li><a href="index.html">Application</a></li>
<li class="active"><a href="#">Getting started <span class="sr-only"></span></a></li>
</ul>
</div>
</div>
</nav>
<!-- Content of the Help page-->
<div><br><br><br></div>
<div>
<div class="container-fluid">
<div class="row">
<div class="col-xs-12 col-md-6 col-md-offset-3">
<!-- pannel for information-->
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><strong>How to use the Crowd Density Mapper Application</strong></h3>
</div>
<div class="panel-body">
<strong>The Application</strong> <br><br>
The application displays the crowd density around the user's current location.
Your location will be annonymously sent to a sever and processed.
Along with processing other users' location, a heat map will be displayed highlighting
the areas with higher user density. <br>
<br><br><br>
<strong> Usage </strong> <br><br>
To activate the map, you are requested to allow your location in the browser.
If using a mobile device, please also enable the GPS sensor as well to contribute a more precise location.
Once you enable your location, a map with all map functionalities alongside the heat layer will be displayed
and refreshed automatically every 2 minutes.<br>
<b>Note:</b> If you deny your location via the browser you cannot use the application.
</div>
</div>
<div>
<!-- error handling -->
<?php
if($_GET["error"] === "1") echo "<p id=\"error\"> User denied the request for Geolocation.<br> If you want to go back to the Application, please set the location settings in the Website settings to \"Accept\" manually.</p>";
if($_GET["error"] === "2") echo "<p id=\"error\"> Location information is unavailable.</p>";
if($_GET["error"] === "3") echo "<p id=\"error\"> The request to get user location timed out.</p>";
if($_GET["error"] === "4") echo "<p id=\"error\"> An unknown error occurred.</p>";
?>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="js/jsnlog.min.js"></script>
<script src="js/jquery-3.1.1.min.js"></script>
<script src = "js/leaflet.js"> </script>
<script src="js/bootstrap.min.js"></script>
<script src = "js/map.js"> </script>
</body>
</html>