-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
146 lines (138 loc) · 6.54 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<!DOCTYPE html>
<html>
<head>
<title>Going Places</title>
<link rel="icon" href="/public/images/favicon.ico">
<script src="https://polyfill.io/v3/polyfill.min.js?features=default"></script>
<script id = "google" src="https://maps.googleapis.com/maps/api/js?key=" defer></script>
<script type='text/javascript' src='config.js'></script>
<script type='text/javascript' src='setKey.js'></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<!-- Stylesheets. -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="public/style.css">
<!-- Bootstrap scripts. -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col">
<h1 class="display-4">Going Places</h1>
</div>
</div>
<div class="row">
<div class="col ui">
<h3 class="display">Route Specifications</h3>
<form onsubmit="return false;">
<div class="input-group mb-2">
<div class="input-group-prepend">
<span class="input-group-text">Starting Location</span>
</div>
<input type="text" class="form-control" id="locationInput" placeholder="Enter Location" onsubmit="return false;"/>
</div>
<div class="input-group mb-2">
<div class="input-group-prepend">
<label class="input-group-text" for="transportTypeSelect">Approximate Route Distance</label>
</div>
<select class="custom-select" id="radiusInput" onchange="updateRadius();">
<option value=750>5 miles</option>
<option value=2000>10 miles</option>
<option value=3550>20 miles</option>
</select>
</div>
<div class="input-group mb-2">
<div class="input-group-prepend">
<label class="input-group-text" for="transportTypeSelect">Transport Type</label>
</div>
<select class="custom-select" id="transportTypeSelect" onchange="updateTransportType();">
<option value="WALKING">Walking</option>
<option value="BICYCLING">Bicycling</option>
<option value="DRIVING">Driving</option>
</select>
</div>
<input type="button" value="Submit" id="submit" class="btn btn-primary mb-2"/>
<div id="route-metrics">
<h3 class="display">Route Metrics</h3>
<table class="table">
<tbody>
<tr>
<th scope="row">1</th>
<td>Distance (miles)</td>
<td id="distance"></td>
</tr>
<tr>
<th scope="row">2</th>
<td>Average Change in Elevation (m)</td>
<td id="elevation"></td>
</tr>
<tr>
<th scope="row">3</th>
<td>Estimated Time</td>
<td id="time"></td>
</tr>
</tbody>
</table>
</div>
<h3 class="display">Route Highlights</h3>
<div id="highlightCarousel" class="carousel slide" data-ride="carousel">
<div class="carousel-inner" id="carousel-items">
<!-- <div class="carousel-item active">
<img class="d-block w-100" src="https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fimages-na.ssl-images-amazon.com%2Fimages%2FI%2F41tNYuWM1oL._SY300_QL70_.jpg&f=1&nofb=1" alt="First slide">
</div> -->
<!-- new slides here -->
</div>
<a class="carousel-control-prev" href="#highlightCarousel" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#highlightCarousel" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</form>
</div>
<div class="col">
<div class="map-style">
<div id="map"></div>
</div>
<div class="d-flex justify-content-center mt-2">
<div class="input-group mb-2 w-25">
<div class="input-group-prepend">
<span class="input-group-text">Satisfaction Level</span>
</div>
<input type="text" class="form-control" id="satisfactionInput" placeholder="0-100" onsubmit="return false;"/>
</div>
</div>
<div class="d-flex justify-content-center mt-1">
<input type="button" class="btn btn-secondary mb-2 mr-2" data-toggle="modal" id="past" value="View Past Routes" data-target="#modal"/>
<input type="button" value="Record" id="record" class="btn btn-primary mb-2"/>
<p id="error" class="font-weight-bold text-danger mt-2 ml-1">Error!</p>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="public/map.js"></script>
<div class="modal fade" id="modal" tabindex="-1" role="dialog" aria-labelledby="modalLabel" aria-hidden="true">
<div class="modal-dialog modal-xl" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="modalLabel">Past Routes</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div id="modal-body" class="modal-body">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</body>
</html>