StealThis .dev

Airline — Flight Status Board

A status-forward airline flight tracker built with vanilla JS. Search any flight number to reveal a large status card showing the route with airport codes, 24-hour departure and arrival times, gate, terminal, seat range and an animated plane that travels the route line as the flight progresses. Big colour-coded pills cover On time, Boarding, Delayed, Departed and Cancelled states, while a compact departures list and an auto-refresh pulse keep the board feeling alive and current.

Open in Lab
html css vanilla-js
Targets: JS HTML

Code

Flight Status Board

A clean, aviation-styled status board for tracking a single flight. Type a flight number (or tap one of the suggested chips) and the big status card updates with the full route — origin and destination airport codes, cities, 24-hour times, gate, terminal, seat range and duration. A large colour-coded pill states the live status: On time, Boarding, Delayed, Departed or Cancelled, with the boarding pill gently blinking to draw the eye.

The centrepiece is the animated route line: a plane icon glides from the origin dot toward the destination dot, with a gradient fill tracking how far along the journey the flight has travelled. Delayed flights surface both scheduled and revised times in an amber accent, and a live UTC clock plus an auto-refresh pulse in the card footer make the widget feel connected to a real operations feed.

Below the card sits a compact Terminal 2 departures list. Each row shows the time, route, gate and a status tag; tapping a row tracks that flight and highlights it. Everything is vanilla JS with tabular figures for times and flight numbers, a small toast() helper for feedback, full keyboard support and a responsive layout that collapses gracefully down to narrow mobile passenger screens.

Illustrative UI only — fictional airline, not a real booking or flight system.