Compare page (frontend/compare.{html,js} + /thermograph/compare route):
line up several places over a date range and rank which best matches a
comfort temperature. Per location it pulls the same daily record the
Calendar uses and, per day, takes a chosen temperature (daytime high /
daily mean / overnight low / feels-like) against the comfort target. A
day "hits comfort" when it lands within an adjustable band; otherwise it
counts as colder or warmer and the average miss is tracked. Results are
ranked by comfort-day share (tie-broken by the smaller typical miss),
with a diverging below/comfort/above bar and per-bucket stats. Comfort,
band and judged temperature re-rank instantly client-side; only the
location set or date range trigger a data load (shared calendar cache).
Feels calendar filter: drop the comfort-temperature slider and the
client-side felt-high/felt-low re-pick. The Feels metric now colors by
the server's combined feels-like value like the other metrics, so its
tab matches the rest of the metric selector.
55 lines
2 KiB
HTML
55 lines
2 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="utf-8" />
|
||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||
<title>Thermograph — a single day</title>
|
||
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" />
|
||
<link rel="stylesheet" href="style.css" />
|
||
</head>
|
||
<body>
|
||
<header>
|
||
<div class="brand">
|
||
<span class="logo">▚</span>
|
||
<div>
|
||
<h1>Thermograph · Day</h1>
|
||
<p class="tag">Every percentile boundary for one day vs its ±7-day climate window</p>
|
||
</div>
|
||
<nav class="view-nav" aria-label="Views">
|
||
<a href="./" data-view="map">Weekly</a>
|
||
<a href="calendar" data-view="calendar">Calendar</a>
|
||
<a href="day" data-view="day" class="active">Day</a>
|
||
<a href="compare" data-view="compare">Compare</a>
|
||
</nav>
|
||
</div>
|
||
</header>
|
||
|
||
<main>
|
||
<section class="controls">
|
||
<div class="find-bar">
|
||
<button type="button" id="find-btn" class="find-btn"></button>
|
||
<span id="loc-label" class="loc-label" hidden></span>
|
||
</div>
|
||
<div class="day-nav">
|
||
<button type="button" id="prev-day" class="day-step" title="Previous day" aria-label="Previous day">‹</button>
|
||
<label class="day-date">Day
|
||
<input id="date-input" type="date" />
|
||
</label>
|
||
<button type="button" id="next-day" class="day-step" title="Next day" aria-label="Next day">›</button>
|
||
</div>
|
||
</section>
|
||
|
||
<div id="day-head" class="cal-head" hidden></div>
|
||
<div class="placeholder" id="day-placeholder">
|
||
<p>Pick a place and a day — or open this from a day on the map or calendar — to see
|
||
the value at every tier boundary in that day's ±7-day climate window.</p>
|
||
</div>
|
||
<div id="day-body"></div>
|
||
</main>
|
||
|
||
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
|
||
<script src="nav.js"></script>
|
||
<script src="mappicker.js"></script>
|
||
<script src="day.js"></script>
|
||
</body>
|
||
</html>
|