Skip to content

Commit

Permalink
capitalized folder names in img src's
Browse files Browse the repository at this point in the history
  • Loading branch information
dannykryan committed Sep 24, 2023
1 parent 13a9586 commit e456caa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@ function imageUpdate(weatherCode, isDay) {
console.log(isDay);
if (isDay === 0 && [0, 1, 2, 3, 45, 48, 80, 81, 82].includes(weatherCode)) {
let weatherDescription = codeLookupNight[weatherCode];
weatherIcon.src = `images/night/${weatherDescription}.png`;
weatherIcon.src = `images/Night/${weatherDescription}.png`;
console.log(weatherDescription);
} else {
let weatherDescription = codeLookupDay[weatherCode];
weatherIcon.src = `images/day/${weatherDescription}.png`;
weatherIcon.src = `images/Day/${weatherDescription}.png`;
console.log(weatherDescription);
}
}
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<div>
<!-- Illustrations sourced from Kawaii Flat on Flaticon.com: https://www.flaticon.com/authors/kawaii/flat?author_id=1&type=standard -->
<img
src="images/day/sunny.png"
src="images/Day/sunny.png"
alt="weather-image"
id="weather-image"
/>
Expand Down

0 comments on commit e456caa

Please sign in to comment.