-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
53 lines (41 loc) · 1.84 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
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Distances btn 2 cities App</title>
<link href="Content/bootstrap.min.css" rel="stylesheet" />
<link rel="preconnect" href="https://fonts.gstatic.com">
<script src="https://kit.fontawesome.com/ab2155e76b.js" crossorigin="anonymous"></script>
<link href="https://fonts.googleapis.com/css2?family=Poppins&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="jumbotron">
<div class="container-fluid">
<h1>Live track and Route finder</h1>
<p>Touch an endpoint in the map and click start</p>
<div class="button-container">
<button class="btn btn-info btn-lg" id="start-btn" onclick="calcRoute();">start<i class="fas fa-map-signs"></i></button>
<button class="btn" style="display: none;" id="stop-btn" onclick="stopLiveTracking()">stop<i class="fas fa-map-signs"></i></button>
</div>
<div class="row">
<div class="col-xs-12 col-md-6">
<div id="googleMap"></div>
</div>
<div class="col-xs-12 col-md-6">
<div id="output"></div>
</div>
</div>
</div>
</div>
<input type="hidden" id="from" placeholder="Origin" class="form-control">
<input type="hidden" id="to" placeholder="Destination" class="form-control">
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyA_UNyyeu7K7g6VmxMlOJFBx1vGT0Igbmo&libraries=places"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="Scripts/jquery-3.1.1.min.js"></script>
<script src="script.js" ></script>
</body>
</html>