This repository was archived by the owner on Aug 8, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHTML
More file actions
68 lines (63 loc) · 1.92 KB
/
Copy pathHTML
File metadata and controls
68 lines (63 loc) · 1.92 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Explore world</title>
<style>
.dropdown {
margin-bottom: 15px;
font-size: 20px;
}
#map {
margin-top: 30px;
}
.submit-button {
margin-left: 90px;
}
</style>
<script>
function initMap() {
var mapMid = [{{ map_pos[0] }}, {{ map_pos[1] }}];
if (!mapMid) return;
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 8,
center: {lat: mapMid[0], lng: mapMid[1]},
});
new google.maps.Marker({
position: {lat: mapMid[0], lng: mapMid[1]},
map: map,
});
}
</script>
<script async defer
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBSLdg6JGi64DtPk-0E91muK89wsXDuCrY&callback=initMap"></script>
</head>
<body onload="initMap()">
<h1>Flight Database Search</h1>
<form method="POST">
<div class="dropdown">
<label for="country"><b>Country Search</b></label></br>
<select name="country" id="country">
{% for country in countries %}
<option value="{{ country.iso_country }}" {% if country_choosen== country.iso_country %} selected {% endif %}>
{{ country.name }}
</option>
{% endfor %}
</select>
</div>
<div class="dropdown">
<label for="airport"><b>Airport Search</b></label></br>
<select name="airport" id="airport">
{% for airport in airports %}
<option value="{{ airport.ident }}" {% if airport_choosen== airport.ident %} selected {% endif %}>
{{ airport.name }}
</option>
{% endfor %}
</select>
</div>
<div class="submit-button">
<input type="submit" value="Submit">
</div>
</form>
<div id="map" style="height: 400px; width: 100%;"></div>
</body>
</html>