Wetter: Regenwahrscheinlichkeit im Chip, SW by-v323
This commit is contained in:
parent
d72ee6f89f
commit
544307e443
3 changed files with 5 additions and 4 deletions
|
|
@ -3,7 +3,7 @@
|
|||
Router, State-Management, Navigation, Initialisierung.
|
||||
============================================================ */
|
||||
|
||||
const APP_VER = '310'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
||||
const APP_VER = '311'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
||||
|
||||
const App = (() => {
|
||||
|
||||
|
|
|
|||
|
|
@ -1526,10 +1526,11 @@ window.Page_map = (() => {
|
|||
const w = await API.weather.get(lat, lon);
|
||||
const temp = w.temp_c != null ? `${Math.round(w.temp_c)}°` : '–';
|
||||
const icon = `<svg class="ph-icon" aria-hidden="true" style="width:12px;height:12px;vertical-align:-2px"><use href="/icons/phosphor.svg#${w.icon}"></use></svg>`;
|
||||
let zecken = w.zecken_warnung
|
||||
const regen = w.precip_prob != null ? ` · 💧 ${w.precip_prob}%` : '';
|
||||
const zecken = w.zecken_warnung
|
||||
? ` · <span style="color:${w.zecken_warnung === 'hoch' ? '#991B1B' : '#92400E'}">🦟 Zecken</span>`
|
||||
: '';
|
||||
info.innerHTML = `${icon} ${temp} ${w.desc}${zecken}`;
|
||||
info.innerHTML = `${icon} ${temp} ${w.desc}${regen}${zecken}`;
|
||||
info.classList.remove('map-weather-chip--hidden');
|
||||
sep.classList.remove('map-weather-chip--hidden');
|
||||
} catch { /* still */ }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue