StealThis .dev
Pages Medium

Airline — Gate Departure Display

A big-screen airline gate departure display built with vanilla JS. A bold banner shows the flight number, LHR to SIN route with airport codes and a plane on the route line, plus a large colour-coded status pill for Boarding, On time, Delayed, Departed or Cancelled. Tiles surface boarding and departure times, gate, terminal and aircraft, while a live countdown ticks toward boarding close. Group rows track who is boarding now, next and waiting, and a progress bar fills as zones advance — all interactive.

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

Code

Gate Departure Display

A large-format gate display in the clean, status-forward aviation style. A gradient header carries the carrier, terminal and gate alongside a live local clock, while the banner below states the flight in big tabular figures, draws the LHR to SIN route with airport codes and a plane sitting on a dashed route line, and surfaces a prominent colour-coded status pill that gently blinks while the flight is Boarding.

A four-up tile row reads out boarding time, scheduled departure, gate and aircraft, with a countdown that ticks down toward boarding close every second. The boarding panel lists each group — First and Business through Economy zones — marking which one is boarding now, which is next and which is still waiting, and a progress bar fills as zones clear. Switching the flight to Delayed reveals the revised departure time in amber.

The control row makes it fully interactive: advance the boarding group one zone at a time, cycle the status through On time, Delayed, Boarding, Departed and Cancelled, or reset the display. You can also tap any group row to jump boarding straight to it. Everything is vanilla JS with a small toast() helper, tabular figures for times and flight numbers, keyboard-usable buttons and a layout that collapses cleanly to a narrow passenger screen.

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