-
Notifications
You must be signed in to change notification settings - Fork 0
/
directions.html
183 lines (158 loc) · 8.16 KB
/
directions.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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<!-- JQuery Import -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<!-- Link External Webpages -->
<link rel="stylesheet" href="style.css?rev=23343432424232424224">
<script src="main.js?rev=90354353335354343"></script>
<title>Project</title>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container-fluid">
<a class="navbar-brand" href="index.html">CSE 383 Final Project</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavDropdown">
<ul class="navbar-nav text-center">
<li class="nav-item">
<a class="nav-link" href="index.html">Landing Page</a>
</li>
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="directions.html">Directions</a>
</li>
<li class="nav-item">
<a class="nav-link" href="history.html">History & Search</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="container">
<br><br>
<h2>Find Directions</h2>
<br>
<label class="form-label" for="startAddress">Starting Address</label>
<input class="form-control" id="startAddress" name="startAddress" type="text">
<div id="errorMessage1" class="hiddenSection">
<p class="error">! Please Input a Non-Empty Address !</p>
</div>
<div id="errorMessage3" class="hiddenSection">
<p class="error">! Not a Valid Address !</p>
</div>
<br>
<label class="form-label" for="endAddress">Ending Address</label>
<input class="form-control" id="endAddress" name="endAddress" type="text">
<div id="errorMessage2" class="hiddenSection">
<p class="error">! Please Input a Non-Empty Address !</p>
</div>
<div id="errorMessage4" class="hiddenSection">
<p class="error">! Not a Valid Address !</p>
</div>
<div class="row">
<div class="col">
<br>
<label class="form-label" for="routeType">Route Type</label>
<br>
<input id="fastest" name="routeType" type="radio" value="fastest" checked>
<label class="radio-btn" for="fastest">Fastest</label>
<br>
<input id="shortest" name="routeType" type="radio" value="shortest">
<label class="radio-btn" for="shortest">Shortest</label>
<br>
<input id="eco" name="routeType" type="radio" value="eco">
<label class="radio-btn" for="eco">Eco</label>
<br>
<input id="thrilling" name="routeType" type="radio" value="thrilling">
<label class="radio-btn" for="thrilling">Thrilling</label>
<br><br>
<label class="form-label" for="hills">Hilliness (Only for Thrilling)</label>
<br>
<input id="lowHills" name="hills" type="radio" value="low">
<label class="radio-btn" for="lowHills">Low Hills</label>
<br>
<input id="normalHills" name="hills" type="radio" value="normal" checked>
<label class="radio-btn" for="normalHills">Normal Hills</label>
<br>
<input id="highHills" name="hills" type="radio" value="high">
<label class="radio-btn" for="highHills">High Hills</label>
</div>
<div class="col">
<br>
<label class="form-label" for="modeTravel">Mode of Travel</label>
<br>
<input id="car" name="modeTravel" type="radio" value="car" checked>
<label class="radio-btn" for="car">Car</label>
<br>
<input id="truck" name="modeTravel" type="radio" value="truck"">
<label class="radio-btn" for="truck"">Truck</label>
<br>
<input id="taxi" name="modeTravel" type="radio" value="taxi">
<label class="radio-btn" for="taxi">Taxi</label>
<br>
<input id="bus" name="modeTravel" type="radio" value="bus">
<label class="radio-btn" for="bus">Bus</label>
<br>
<input id="van" name="modeTravel" type="radio" value="van">
<label class="radio-btn" for="van">Van</label>
<br>
<input id="motorcycle" name="modeTravel" type="radio" value="motorcycle">
<label class="radio-btn" for="motorcycle">Motorcycle</label>
<br>
<input id="bicycle" name="modeTravel" type="radio" value="bicycle">
<label class="radio-btn" for="bicycle">Bicycle</label>
<br>
<input id="pedestrian" name="modeTravel" type="radio" value="pedestrian">
<label class="radio-btn" for="pedestrian">Pedestrian</label>
</div>
</div>
<div class="container justify-content-center">
<br><br>
<button class="btn btn-primary form-control" id="submit">Find Directions</button>
</div>
<br><hr>
</div>
<div id="results" class="hiddenSection">
<div class="container" id="LatLong">
<br>
<h2>Latitude and Longitude</h2><br>
<p id="startLabel">Starting Address : <span id="startLatLong"></span></p>
<p id="endLabel">Ending Address : <span id="endLatLong"></span></p>
<br><hr>
</div>
<div class="container" id="instructions_section">
<br>
<h2>Route Summary</h2>
<br>
<table class="table">
<tr>
<th>Distance in Kilometers</th>
<th>Travel Time in Minutes</th>
<th>Current Traffic Delay in Minutes</th>
</tr>
<tr>
<td><span id="distance"></span></td>
<td><span id="travelTime"></span></td>
<td><span id="trafficDelay"></span></td>
</tr>
</table>
<br>
<h2>Instructions</h2>
<br>
<ol class="list-group list-group-numbered" id="listPath">
<span id="path"></span>
</ol>
<br><hr><br>
</div>
</div>
<!-- Bootstrap Javascript -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
</body>
</html>