-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
49 lines (48 loc) · 2.14 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Köppen Flights</title>
<script src="https://cdn.jsdelivr.net/npm/@turf/turf@6/turf.min.js"></script>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<h1 class="font-mono font-bold text-3xl text-center font-black">
Köppen Flight
</h1>
<p class=" mx-3">
Have you ever looked out of the window on a plane and noticed the huge variety of terrain and geography out the window.
If so, here you can analyse in-depth the distribution of all <a href="https://en.wikipedia.org/wiki/K%C3%B6ppen_climate_classification" class="underline">Köppen–Geiger climate zones</a> over the length of your flight.
To begin, enter any <a href="https://en.wikipedia.org/wiki/ICAO_airport_code" class="underline">airport ICAO code</a>.
</p>
<div class="flex flex-row px-10">
<div class="w-full mx-3 flex flex-col">
<label class="w-full text-center text-lg font-black">
From
</label>
<input class="bg-gray-50 border border-gray-900 rounded px-2 py-1 w-full" placeholder="KLAX" name="from"/>
</div>
<div class="w-full mx-3 flex flex-col">
<label class="w-full text-center text-lg font-black">
To
</label>
<input class="bg-gray-50 border border-gray-900 rounded px-2 py-1 w-full" placeholder="CYYZ" name="to"/>
</div>
</div>
<div class="flex w-full justify-center my-10">
<button class="px-5 py-3 bg-green-200 rounded-lg" onclick="loadFlights()">
Köppen
</button>
</div>
<div class="flex flex-row w-full justify-center">
<h1 class="color-grey-900 text-center font-mono font-bold text-xl font-black">
<span id="start-name">Starting Airport</span>
⇨
<span id="end-name">Ending Airport</span>
</h1>
</div>
<div id="zones" class="flex flex-row flex-wrap justify-center w-full"></div>
<script src="script.js" defer></script>
</body>
</html>