mirror of
https://github.com/myronblair/jarvis
synced 2026-07-27 16:22:55 -05:00
Fix weather widget location label stuck on Fort Worth: the span was a static HTML placeholder never wired to the API response. Wire loadWeather() to update it from d.location, and correct the fallback text to Weatherford, TX
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -982,6 +982,7 @@ async function loadWeather() {
|
||||
const d = await api('weather');
|
||||
if (!d || !d.current) return;
|
||||
const c = d.current;
|
||||
if (d.location) document.getElementById('weather-loc').textContent = d.location.toUpperCase();
|
||||
document.getElementById('weather-temp').textContent = c.temp;
|
||||
document.getElementById('weather-desc').textContent = (c.desc || '').toUpperCase();
|
||||
document.getElementById('weather-feels').textContent = c.feels + '°F';
|
||||
|
||||
@@ -84,7 +84,7 @@
|
||||
<div id="leftPanel">
|
||||
<!-- Weather Widget -->
|
||||
<div class="panel" style="flex:0 0 auto">
|
||||
<div class="panel-title">WEATHER <span id="weather-loc" style="font-size:0.55rem;color:var(--text-dim)">FORT WORTH, TX</span></div>
|
||||
<div class="panel-title">WEATHER <span id="weather-loc" style="font-size:0.55rem;color:var(--text-dim)">WEATHERFORD, TX</span></div>
|
||||
<div style="display:flex;align-items:flex-start;gap:12px;margin-bottom:8px">
|
||||
<div style="flex:1">
|
||||
<div style="display:flex;align-items:baseline;gap:8px">
|
||||
|
||||
Reference in New Issue
Block a user