-
Notifications
You must be signed in to change notification settings - Fork 0
/
geolocation.html
42 lines (39 loc) · 1.65 KB
/
geolocation.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/custom.css">
<title>Geolocation</title>
</head>
<body>
<div class="container h-100 p-0">
<header class="px-4 row">
<h1 class="col-sm-3">Geolocation</h1>
<nav class="navbar navbar-expand-sm mr-auto col-sm-9">
<ul class="navbar-nav">
<li class="nav-item"><a class="nav-link" href="index.html">HOME</a></li>
<li class="nav-item"><a class="nav-link" href="geolocation.html">GEOLOCATION</a></li>
<li class="nav-item"><a class="nav-link" href="maps.html">MAPS</a></li>
<li class="nav-item"><a class="nav-link" href="about.html">ABOUT</a></li>
</ul>
</nav>
</header>
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-6">
<button class="btn bg-success mt-3 w-100" onclick="initMap()">Show Current Position</button>
<div class="mt-3" id="map">
</div>
<caption>Current Position</caption>
</div>
<div class="col-md-3"></div>
</div>
</div>
<script src="js/geolocation.js"></script>
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyA9ys5-CekTqQKhMB93DCNyBnmUGCCqrgs&callback=getLocation"></script>
<script src="js/bootstrap.js"></script>
</body>
</html>