diff --git a/public/index.html b/public/index.html index 74d7bff..753af61 100644 --- a/public/index.html +++ b/public/index.html @@ -1395,7 +1395,14 @@ fill="var(--surface-raised)" /> - + first-crack band, 176–187 °C @@ -1452,15 +1459,15 @@ - - 60 - 80 - 100 - 120 - 140 - 160 - 180 - 200 + + 60 + 80 + 100 + 120 + 140 + 160 + 180 + 200 0:00 @@ -2019,7 +2026,7 @@ name="temps.charge.tempC" /> - 133–195 °C + 133–195 °C Turning point @@ -2036,7 +2043,7 @@ name="temps.tp.tempC" /> - 77–100 °C @ 0:47–1:15 + 77–100 °C @ 0:47–1:15 Yellow @@ -2049,7 +2056,7 @@ name="temps.yellow.tempC" /> - 148–166 °C + 148–166 °C First crack @@ -2060,7 +2067,7 @@ name="temps.fc.tempC" /> - 176–187 °C + 176–187 °C Drop @@ -2071,7 +2078,7 @@ name="temps.drop.tempC" /> - 183–197 °C light + 183–197 °C light @@ -2158,7 +2165,15 @@ width="600" height="19.8" /> - + your first-crack band, 176–187 °C @@ -2231,6 +2246,7 @@ class="ttl" transform="rotate(-90 14 159)" text-anchor="middle" + id="print-curve-axis-title" > BEAN TEMP °C diff --git a/public/js/main.js b/public/js/main.js index e5c16d4..402dd56 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -638,6 +638,20 @@ function updateTempUnitUI() { if (printHeader) printHeader.textContent = label; for (const input of document.querySelectorAll('#temp-unit-toggle input[name="tempUnit"]')) input.checked = input.value === tempUnit; + + // Static reference numbers that live outside the plan (chart axes, band captions, the + // print worksheet's "Your logged band" column) — these are fixed constants, not plan + // data, so they're driven off data-tempc/data-band-lo/hi rather than valueForName(). + const conv = (c) => Math.round(tempUnit === "F" ? cToF(c) : c); + for (const el of document.querySelectorAll("[data-tempc]")) + el.textContent = String(conv(Number(el.dataset.tempc))); + for (const el of document.querySelectorAll("[data-band-lo]")) { + const lo = conv(Number(el.dataset.bandLo)); + const hi = conv(Number(el.dataset.bandHi)); + el.textContent = `${el.dataset.bandPrefix ?? ""}${lo}–${hi} ${label}${el.dataset.bandSuffix ?? ""}`; + } + const axisTitle = document.getElementById("print-curve-axis-title"); + if (axisTitle) axisTitle.textContent = `BEAN TEMP ${label}`; } function setTempUnit(unit) {