-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
42 lines (39 loc) · 1.39 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Satellites</title>
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta name="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<style media="screen">
#map{
height: 550px;
width: 100%
}
</style>
</head>
<body>
<div class="container" align="center">
<h1>Find nearest Satellite</h1>
<p>
Find a place on the map and click to drop a pin.
Then click the button below to find which satellites are closest.
<br>Clicking in a new location will clear the List.
</p>
<p></p>
<div id="map"></div>
<br>
<p id="currentLat"></p>
<p id="currentLng"></p>
<button id="getSats"onclick="getSats()" type="button" class="btn btn-primary">Find Satellites</button>
</div>
<div class="container">
<ol id="sats"></ol>
</div>
<script src="map_api.js"></script>
<script src="sats_api.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?key=[ADD_API_KEY]&callback=initMap"async defer></script>
</body>
</html>