Skip to content

Commit 590408e

Browse files
committed
add weather placeholder images
1 parent c1495dc commit 590408e

6 files changed

+3
-3
lines changed
2.42 KB
Loading
2.42 KB
Loading
2.22 KB
Loading
1.36 KB
Loading

js/wmain.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ if (weatherForecast.status === 200){
7474
weekday[4] = "Thursday";
7575
weekday[5] = "Friday";
7676
weekday[6] = "Saturday";
77-
const day1 = weekday[dayWeek]; console.log(`day2 is ${day1}`);
77+
const day1 = weekday[dayWeek]; console.log(`day1 is ${day1}`);
7878
let day2, day3;
7979
document.getElementById('r1c1').innerHTML = day1;
8080
document.getElementById('r1c3').innerHTML = Math.round(fObj.list[0].main.temp)+"°";
@@ -106,7 +106,7 @@ if (weatherForecast.status === 200){
106106
else {
107107
day3 = weekday[dayWeek+2];
108108
}
109-
console.log(`day is ${day3}`);
109+
console.log(`day3 is ${day3}`);
110110
document.getElementById('r3c1').innerHTML = day3;
111111
document.getElementById('r3c3').innerHTML = Math.round(fObj.list[16].main.temp)+"°";
112112
document.getElementById('r3c2').src = "https://openweathermap.org/img/w/"+fObj.list[16].weather[0].icon+".png";

weather_ins.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ <h2>JSON data via OpenWeatherMap.org API</h2>
4646
<section id="left">
4747
<div id="location">City HSV</div>
4848
<div id="weathccondicon">
49-
<img src="imageplaceholder" alt="current weather" id="wcicon">
49+
<img src="/images/WeatherConditionPlaceholder-alt2.png" alt="current weather" id="wcicon">
5050
</div>
5151
<div id="weather">Current Conditions</div>
5252
<div style="text-align: center;"><span id="temperature">?</span> &deg;F</div>

0 commit comments

Comments
 (0)