Skip to content

Commit

Permalink
script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Dkghuser authored Jan 13, 2024
1 parent adbcafd commit a3fb25d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions weather/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ async function checkWeather(city){

switch(weather_data.weather[0].main){
case 'Clouds':
weather_img.src = "./assets/cloud.png";
weather_img.src = "/assets/cloud.png";
break;
case 'Clear':
weather_img.src = "./assets/clear.png";
weather_img.src = "/assets/clear.png";
break;
case 'Rain':
weather_img.src = "./assets/rain.png";
Expand All @@ -62,4 +62,4 @@ async function checkWeather(city){

searchBtn.addEventListener('click', ()=>{
checkWeather(inputBox.value);
});
});

0 comments on commit a3fb25d

Please sign in to comment.