A web application that provides stopwatch functionality with separate display and control screens. Multiple stopwatches can be run simultaneously using unique IDs.
- Stopwatch with hours, minutes, seconds, and milliseconds
- Separate display and control screens
- Multiple stopwatch instances via unique IDs
- Controls: Start, Stop, Reset
- Persistent state via localStorage
- Each stopwatch has a unique ID in the URL parameter
- The display screen shows the stopwatch time
- The control screen has buttons to start, stop, and reset the stopwatch
- Communication between screens uses localStorage events
- State persists if you close and reopen the browser
npm installnpm startThis will start the server on port 3000 (or the port specified in the PORT environment variable).
Open your browser and navigate to http://localhost:3000 to use the app.
npm run devThis uses nodemon to automatically restart the server when changes are detected.
- Navigate to the app homepage
- A unique stopwatch ID will be generated
- Use the "Go to Control Panel" link to open the control page
- Use the Start, Stop, and Reset buttons to control your stopwatch
- Share the URL with others to let them view the same stopwatch
- Create multiple stopwatches by navigating to the homepage in different tabs
MIT