Skip to content

Commit

Permalink
FixDone
Browse files Browse the repository at this point in the history
  • Loading branch information
Response201 committed Sep 23, 2021
1 parent 6f4800f commit a1a6980
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Designs/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ const getData = () => {
const dayName = date.toLocaleDateString("en-US", { weekday: "long" });
const weekTemp = day.main.temp.toFixed(0);

forecastDay.innerHTML += `<p>${dayName}</p>`
forecastTemp.innerHTML += `<p>🌡️${weekTemp}°C</p>
<p>Feels like ${day.main.feels_like.toFixed(1)}°C</p>`
forecastIcon.innerHTML += `<img src="https://openweathermap.org/img/wn/${day.weather[0].icon}@2x.png"/>`
weatherForecast.innerHTML += `<p>${dayName}</p>
<p>🌡️${weekTemp}°C</p>
<p>Feels like ${day.main.feels_like.toFixed(1)}°C</p>
<img src="https://openweathermap.org/img/wn/${day.weather[0].icon}@2x.png"/>`
});
});

Expand All @@ -123,7 +123,7 @@ const getData = () => {
// );


// // https://stackoverflow.com/questions/24998624/day-name-from-date-in-js/24998705 autohor iamnox
// https://stackoverflow.com/questions/24998624/day-name-from-date-in-js/24998705 autohor iamnox
// weatherForecast.innerHTML = ''
// forecastDay.forEach((day) => {
// weatherForecast.innerHTML += `
Expand Down

0 comments on commit a1a6980

Please sign in to comment.