---
name: build-a-new-year-s-eve-countdown-clock-with-world-time-zones-and
description: "You get one HTML file with a big countdown to midnight in any time zone, a live list of cities already in the new year, and a full-screen party mode for a TV."
---

# Build a New Year's Eve Countdown Clock with World Time Zones and Party Mode in HTML

Source: https://prompts-gpt.com/prompts/build-a-new-year-s-eve-countdown-clock-with-world-time-zones-and-party-mode-in-html

You get one HTML file with a big countdown to midnight in any time zone, a live list of cities already in the new year, and a full-screen party mode for a TV.

## Prompt

```
Act as a senior front-end developer who builds polished, offline-ready event tools. Build "Midnight Line", a New Year's Eve countdown clock for a party shown on a TV or projector. It counts down to the next 1 January 00:00 in a selected time zone. The default is the browser's own zone from Intl.DateTimeFormat().resolvedOptions().timeZone, and a select offers about 24 IANA zones from Pacific/Kiritimati to Pacific/Pago_Pago. Rules:
1. Compute midnight in any zone with the built-in Intl API only (formatToParts offsets), with no libraries or network calls. Show the target year dynamically and never hard-code it.
2. Show big days, hours, minutes and seconds with a self-correcting timer. Add a live 'Who is already in the new year' list of 20 world cities, sorted by when they reach midnight. Each city shows its local time and either 'Celebrating' with a check mark or a countdown such as 'in 3 h 20 m'.
3. A Party mode button (also the F key) calls requestFullscreen with a CSS full-window fallback. It hides everything except the giant countdown, the year and a subtle animated background. Escape leaves party mode.
4. In the final 10 seconds, show one huge pulsing number. At zero, fire a canvas fireworks burst and show 'Happy New Year' with the year. Skip big motion under prefers-reduced-motion.
5. A 'Test the finale' button simulates the last 15 seconds. A visible mute toggle controls a soft Web Audio chime; create the AudioContext on the first click or key press only.
6. Use system fonts and light and dark themes, with visible focus and full keyboard use. The page must fit 360-1280px wide and use no storage, alerts or forms.
Output format: one complete HTML file in a single code block, then 3 short ideas to extend it.
```

## Usage Notes

Paste into Claude and open the result as an artifact; it runs in the artifact panel and can be published or shared from there. You can also use ChatGPT canvas or Gemini Canvas, or save the code as an .html file and open it in any browser, which also works offline.
