master
Flight Lookup
A simple static webpage that takes a flight number and airline as input and displays the flight's origin and destination.
Files
index.html— page markupstyle.css— stylingdata.js— mock data source (airlines, airports, flights)app.js— form handling and result rendering
Usage
Open index.html in a browser, or serve the directory:
python3 -m http.server 8000
Then visit http://localhost:8000.
Example flights
| Airline | Flight | Route |
|---|---|---|
| American (AA) | 100 | JFK → LAX |
| Delta (DL) | 123 | ATL → SFO |
| United (UA) | 789 | ORD → LHR |
| British Airways (BA) | 117 | LHR → JFK |
| Lufthansa (LH) | 400 | FRA → JFK |
Data source
Flight data is mocked in data.js. To use a real source (e.g. FlightAware AeroAPI), replace the lookupFlight function with an fetch call to the API.
Languages
JavaScript
64.6%
CSS
27.3%
HTML
8.1%