Update comments

This commit is contained in:
Tressley Cahill
2022-11-03 11:31:16 -04:00
parent ba7c831013
commit 4ca2733199
2 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ function weatherBalloon(cityID) {
})
.then(function(data) {
let weatherIcon = data.weather[0].icon;
let tempK = parseFloat(data.main.temp);
let tempK = parseFloat(data.main.temp);
let tempC = Math.round(tempK - 273.15);
let tempF = Math.round((tempK - 273.15) * 1.8) + 32;
document.getElementById('weather').innerHTML = '<p id="location">' + data.name + '</p><p id="details" ' + 'title="' + tempF + '&deg;F">' + '<img src="http://openweathermap.org/img/wn/' + weatherIcon + '@2x.png">' + data.weather[0].description + '<span class="separator">|</span>' + tempC + '&deg;C</p>';