All projects · Marketing & Lead-Gen
OpenNow — Business Hours & Emergency Checker
A live 'are we open right now' status widget that compares the visitor's local time against configured business hours and resolves into Open,…
A live 'are we open right now' status widget that compares the visitor's local time against configured business hours and resolves into Open, After-hours (24/7 emergency), or Closed states. Each state re-themes the page and swaps the CTA copy, icon, and contact detail. A corner demo switcher lets reviewers preview every state on demand.
- Time-math status resolver (HH:MM to minutes) that re-evaluates every minute to catch open/close crossings
- State-driven theming with three swappable accent palettes
- Dynamic CTA that shifts between standard booking, emergency callout, and message-us flows
- Auto-built hours table with today's row highlighted
Built with: Vanilla JavaScript, CSS custom properties, JavaScript Date API, setInterval polling, SVG icon library