A shared units module in nav.js holds the active unit (persisted), converts Fahrenheit API values for display, and notifies pages to repaint on a switch. A segmented °F/°C control is injected into the top-right of every header (left of the view tabs); Weekly, Day and Calendar convert every temperature — cards, dense timeline, trend chart axis/labels, tooltips and the PNG export — while wind, humidity and precip stay as-is. Compare keeps its Fahrenheit comfort slider, so the toggle is hidden there. |
||
|---|---|---|
| .. | ||
| app.js | ||
| calendar.html | ||
| calendar.js | ||
| compare.html | ||
| compare.js | ||
| day.html | ||
| day.js | ||
| index.html | ||
| legend.html | ||
| mappicker.js | ||
| nav.js | ||
| style.css | ||