-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
97 lines (94 loc) · 2.99 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
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
<!DOCTYPE HTML>
<html manifest = "assn1.appcache">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="../../favicon.ico">
<!-- Bootstrap core CSS -->
<link href="css/bootstrap.css" rel="stylesheet">
<!-- Andrew's Work begins here!-->
<title>Assignment 1 - Andrew Magnus</title>
<script src ="https://maps.googleapis.com/maps/api/js?v=3.exp"></script>
<script src = "googleMaps.js">
</script>
</head>
<style>
html{height:100%;}
body{height:100%;}
.container-fluid{height:100%;}
#mapRow{height:100%;}
#map{height:100%;}
.sidebar-item{text-align:center;}
</style>
<body style = "background-color:skyblue;">
<div class= "container-fluid">
<div class="row" id = "mapRow">
<!--Map holder DIV-->
<div id="map" class = "col-md-10"></div>
<!--sidebar-->
<div class = "col-md-2" style = "background-color: skyblue" id = "sidebar">
<!--display longtude latitude-->
<div class = "sidebar-item">
<h1 style = "text-align: center;"> Andrew Magnus Assignment 1 </h1>
</div>
<div id="modeSelect" style = "text-align:center;" class = "sidebar-item">
<strong>Mode of Travel: </strong>
<select id="mode" onchange="changeTravelMode();">
<option value="WALKING">Walking</option>
<option value="BICYCLING">Bicycling</option>
</select>
</div>
<div class = "sidebar-item">
<input id="starting" type="text" placeholder = "enter your starting location" size="30">
</div>
<div class = "sidebar-item">
<input id="dest" type="text" placeholder = "enter destination" size="30">
</div >
<div class = "sidebar-item">
<input type="button" onclick="geocodeAndCalc();" value="Show the way" >
</div>
<div class = "sidebar-item">
<label for="startLat">Starting Location Latitude:</label>
<br>
<input id="startLat" type="text">
<br>
<label for="startLong">Starting Location Longitude:</label>
<br>
<input id="startLong" type="text">
</div>
<div class = "sidebar-item">
<label for="endLat">Destination Latitude:</label>
<br>
<input id="endLat" type="text">
<br>
<label for="endLogn">Destination Longitude:</label>
<br>
<input id="endLong" type="text">
</div>
<div class = "sidebar-item">
<input type="button" onclick="trackPath()" value="Track Path">
</div>
<div id="latlong" class = "sidebar-item">
<p id ="DisplayLatLong"></p>
</div>
<div class = "sidebar-item">
<p id ="currentLoc"></p>
</div>
<div class = "sidebar-item">
<p id ="displaydistance"></p>
</div>
<div class = "sidebar-item">
<p id ="betweenCurrStart"></p>
</div>
<div class = "sidebar-item">
<p id ="betweenCurrDest"></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>