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 markup
  • style.css — styling
  • data.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.

S
Description
No description provided
Readme
45 KiB
0 Stars 1 Watchers 0 Forks
Languages
JavaScript 64.6%
CSS 27.3%
HTML 8.1%