3.2.4
New heat bands for UTCI and Air -using latest research values
This commit is contained in:
+5
-5
@@ -1644,8 +1644,8 @@ export function UTCIForecast() {
|
||||
<div class="insight-panel insight-panel--glance">
|
||||
<div class="insight-panel-title">At a glance${glanceDate ? ` · ${glanceDate}` : ''}</div>
|
||||
${(() => {
|
||||
const heatEvents = eventGlanceItems.filter(e => /heat spike|heat warning|extreme heat/i.test(e.label)).map(e => ({ ...e, alert: true }));
|
||||
const otherEvents = eventGlanceItems.filter(e => !/heat spike|heat warning|extreme heat/i.test(e.label));
|
||||
const heatEvents = eventGlanceItems.filter(e => /heat caution|heat warning|extreme heat/i.test(e.label)).map(e => ({ ...e, alert: true }));
|
||||
const otherEvents = eventGlanceItems.filter(e => !/heat caution|heat warning|extreme heat/i.test(e.label));
|
||||
const renderRow = ({ icon, label, value, alert }, keyPrefix = '') => html`
|
||||
<div class=${`insight-row${alert ? ' insight-row--alert' : ''}`} key=${`${keyPrefix}${label}`}>
|
||||
<span class="insight-icon">${icon}</span>
|
||||
@@ -1760,9 +1760,9 @@ export function UTCIForecast() {
|
||||
{ t: 1, label: 'Cold' },
|
||||
{ t: 11, label: 'Cool' },
|
||||
{ t: 21, label: 'Comfortable', bold: true },
|
||||
{ t: 31, label: 'Hot' },
|
||||
{ t: 41, label: 'Very hot' },
|
||||
{ t: 51, label: 'Danger' },
|
||||
{ t: 29, label: 'Caution' },
|
||||
{ t: 36, label: 'Extreme' },
|
||||
{ t: 47, label: 'Danger' },
|
||||
].map((b, i) => {
|
||||
const rgb = airTempRgb(b.t) || [200, 200, 200];
|
||||
const mid = `rgb(${rgb[0]},${rgb[1]},${rgb[2]})`;
|
||||
|
||||
Reference in New Issue
Block a user