Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhruv-Bajpai authored Apr 30, 2024
1 parent 1a17353 commit bbd67f1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ const getWeatherData = async () => {
cityName.innerHTML = `${name}, ${getCountryName(sys.country)}`;
dateTime.innerHTML = getDateTime(dt);

w_forecast.innerHTML = (weather[0].main-273);
w_forecast.innerHTML = weather[0].main;
w_icon.innerHTML = `<img src="http://openweathermap.org/img/wn/${weather[0].icon}@4x.png" />`;

w_temperature.innerHTML = `${main.temp}&#176`;
w_minTem.innerHTML = `Min: ${main.temp_min.toFixed()}&#176`;
w_maxTem.innerHTML = `Max: ${main.temp_max.toFixed()}&#176`;
w_temperature.innerHTML = `${main.temp-273}&#176`;
w_minTem.innerHTML = `Min: ${main.temp_min-273.toFixed()}&#176`;
w_maxTem.innerHTML = `Max: ${main.temp_max-273.toFixed()}&#176`;

w_feelsLike.innerHTML = `${main.feels_like.toFixed(2)}&#176`;
w_humidity.innerHTML = `${main.humidity}%`;
Expand Down

0 comments on commit bbd67f1

Please # to comment.