This repository is a simple and practical analog clock Static Web App. It runs as a single HTML file, requires no server or build steps, and works by opening it directly in a browser.
- Keep the structure easy to distribute as a Static Web App
- Prioritize good visuals and smooth performance
- Align updates to second boundaries to avoid unnecessary redraws
- Redraw static elements only on initial render and resize
- Update date-related information only when it changes
- Avoid OS-dependent layout measurements when clamping date UI; use fixed layout dimensions with current scale instead
- Main working file:
index.html
APP_VERSIONformat:v+YYYYMMDD+ suffix (a, thenb,c, ...)
- If the date UI disappears or drifts, temporarily add a console trace in
placeDateOutsideAngle()to log center and bbox values on each update, then remove the trace after verifying.
- Open
index.htmldirectly in a browser (no build needed) - For GitHub Pages, place it at the repository root
- SVG.js (CDN, MIT License)