-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflights.html
294 lines (285 loc) · 10.8 KB
/
flights.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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="https://kit.fontawesome.com/b9e0ebf908.js" crossorigin="anonymous"></script>
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="https://cdn.datatables.net/1.11.3/css/dataTables.bootstrap5.min.css">
<link rel="stylesheet" href="https://cdn.datatables.net/1.11.3/css/jquery.dataTables.min.css">
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"
crossorigin="anonymous"
></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="//cdn.datatables.net/1.11.3/js/jquery.dataTables.min.js"></script>
<link rel="stylesheet" href="css/style.css" />
<script>
// Initialize and add the map
function initMap() {
const lax = { lat: 33.9332235, lng: -118.40395 };
const map = new google.maps.Map(document.getElementById('map'), {
zoom: 8,
center: lax,
});
const marker = new google.maps.Marker({
position: lax,
map: map,
});
}
</script>
<title>LAX</title>
</head>
<body>
<!-- TopBar -->
<div class="py-3 bg-light border-bottom d-none d-md-block">
<div class="container">
<div class="row d-md-flex justify-content-between">
<div class="col-md-6 col-xl-4 d-flex justify-content-between">
<div><i class="far fa-envelope"></i><span> [email protected]</span></div>
<div><i class="far fa-envelope"></i><span> +00 (123) 456 78 90</span></div>
</div>
<div class="col-md-3 d-flex justify-content-end align-items-center socials">
<a href="http://www.facebook.com"><i class="fab fa-facebook-f px-2"></i></a>
<i class="fab fa-google-plus-g px-2"></i>
<i class="fab fa-twitter px-2"></i>
<i class="fab fa-pinterest-p px-2"></i>
<i class="fab fa-behance px-2"></i>
<i class="fab fa-dribbble px-2"></i>
</div>
</div>
</div>
</div>
<!-- Navbar -->
<nav class="navbar navbar-expand-lg navbar-light py-md-5">
<div class="container">
<button
class="navbar-toggler"
type="button"
data-bs-toggle="collapse"
data-bs-target="#navbarTogglerDemo03"
aria-controls="navbarTogglerDemo03"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<a class="navbar-brand mb-0 h1 fs-1 pe-none user-select-none" href="#">LAX</a>
<div class="collapse navbar-collapse" id="navbarTogglerDemo03">
<ul class="navbar-nav mx-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link" href="index.html">HOME</a>
</li>
<li class="nav-item">
<a class="nav-link" href="city.html">CITY</a>
</li>
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="flights.html">FLIGHTS</a>
</li>
<li class="nav-item">
<a class="nav-link" href="contact.html">CONTACT</a>
</li>
</ul>
<form class="d-flex">
<i class="fas fa-search"></i>
</form>
</div>
</div>
</nav>
<!-- Banner -->
<div class="text-center d-flex flex-column justify-content-center align-items-center text-light flightsJumbo">
<h1 class="display-1 fw-bold">ARRIVALS & DEPARTURES</h1>
</div>
<!-- Section: OpenSKY API -->
<script src="js/opensky.js"></script>
<script>
$(document).ready(function() {
getFlights('arrival');
getFlights('departure');
});
</script>
<section>
<div class="container py-3">
<h1 class="text-center">Arrivals</h1>
<div class="row">
<div class="col">
<form class="text-center py-3">
<input type="datetime-local" id="arrivalBegin" class="border p-2">
<input type="datetime-local" id="arrivalEnd" class="border p-2">
<button type="button" class="btn btn-primary" id="arrivalDateSubmit">Search</button>
</form>
<table id="arrival" class="table table-striped hover" style="width:100%">
<thead>
<tr>
<th>ICAO24</th>
<th>Callsign</th>
<th>Departure Airport</th>
<th>Arrival Airport</th>
<th>Departure Time</th>
<th>Arrival Time</th>
</tr>
</thead>
<tbody>
</tbody>
<tfoot>
<tr>
<th>ICAO24</th>
<th>Callsign</th>
<th>Departure Airport</th>
<th>Arrival Airport</th>
<th>Departure Time</th>
<th>Arrival Time</th>
</tr>
</tfoot>
</table>
</div>
</div>
<h1 class="text-center">Departures</h1>
<div class="row">
<div class="col">
<form class="text-center py-3">
<input type="datetime-local" id="departureBegin" class="border p-2">
<input type="datetime-local" id="departureEnd" class="border p-2">
<button type="button" class="btn btn-primary" id="departureDateSubmit">Search</button>
</form>
<table id="departure" class="table table-striped hover" style="width:100%">
<thead>
<tr>
<th>ICAO24</th>
<th>Callsign</th>
<th>Departure Airport</th>
<th>Arrival Airport</th>
<th>Departure Time</th>
<th>Arrival Time</th>
</tr>
</thead>
<tbody>
</tbody>
<tfoot>
<tr>
<th>ICAO24</th>
<th>Callsign</th>
<th>Departure Airport</th>
<th>Arrival Airport</th>
<th>Departure Time</th>
<th>Arrival Time</th>
</tr>
</tfoot>
</table>
</div>
</div>
</div>
</section>
<!-- Section: OpenSKY API -->
<!-- Footer -->
<footer class="text-center text-lg-start text-muted pt-3">
<!-- Section: Social media -->
<section class="d-sm-flex justify-content-center justify-content-lg-between p-4 border-bottom d-md-none">
<div>
<a href="" class="me-4 text-reset">
<i class="fab fa-facebook-f"></i>
</a>
<a href="" class="me-4 text-reset">
<i class="fab fa-google-plus-g"></i>
</a>
<a href="" class="me-4 text-reset">
<i class="fab fa-twitter"></i>
</a>
<a href="" class="me-4 text-reset">
<i class="fab fa-pinterest-p"></i>
</a>
<a href="" class="me-4 text-reset">
<i class="fab fa-behance"></i>
</a>
<a href="" class="me-4 text-reset">
<i class="fab fa-dribbble"></i>
</a>
</div>
</section>
<!-- Section: Social media -->
<!-- Section: Links -->
<section class="">
<div class="container text-center text-md-start">
<!-- Grid row -->
<div class="row mt-3">
<!-- Grid column -->
<div class="col-md-3 col-lg-4 col-xl-3 mx-auto mb-4">
<!-- Content -->
<h6 class="text-uppercase fw-bold mb-4"><i class="fas fa-gem me-3"></i>Company name</h6>
<p>
Here you can use rows and columns to organize your footer content. Lorem ipsum dolor sit amet,
consectetur adipisicing elit.
</p>
</div>
<!-- Grid column -->
<!-- Grid column -->
<div class="col-md-2 col-lg-2 col-xl-2 mx-auto mb-4">
<!-- Links -->
<h6 class="text-uppercase fw-bold mb-4">Products</h6>
<p>
<a href="#!" class="text-reset">Angular</a>
</p>
<p>
<a href="#!" class="text-reset">React</a>
</p>
<p>
<a href="#!" class="text-reset">Vue</a>
</p>
<p>
<a href="#!" class="text-reset">Laravel</a>
</p>
</div>
<!-- Grid column -->
<!-- Grid column -->
<div class="col-md-3 col-lg-2 col-xl-2 mx-auto mb-4">
<!-- Links -->
<h6 class="text-uppercase fw-bold mb-4">Useful links</h6>
<p>
<a href="#!" class="text-reset">Pricing</a>
</p>
<p>
<a href="#!" class="text-reset">Settings</a>
</p>
<p>
<a href="#!" class="text-reset">Orders</a>
</p>
<p>
<a href="#!" class="text-reset">Help</a>
</p>
</div>
<!-- Grid column -->
<!-- Grid column -->
<div class="col-md-4 col-lg-3 col-xl-3 mx-auto mb-md-0 mb-4">
<!-- Links -->
<h6 class="text-uppercase fw-bold mb-4">Contact</h6>
<p><i class="fas fa-home me-3"></i> Los Angeles, LA 10012, US</p>
<p>
<i class="fas fa-envelope me-3"></i>
</p>
<p><i class="fas fa-phone me-3"></i> + 01 234 567 88</p>
<p><i class="fas fa-print me-3"></i> + 01 234 567 89</p>
</div>
<!-- Grid column -->
</div>
<!-- Grid row -->
</div>
</section>
<!-- Section: Links -->
<!-- Copyright -->
<div class="text-center p-4" style="background-color: rgba(0, 0, 0, 0.05)">
© 2021 Copyright:
<a class="text-reset fw-bold" href="https://mdbootstrap.com/">mdbootstrap.com</a>
</div>
<!-- Copyright -->
</footer>
<!-- Footer -->
</body>
</html>