diff --git a/weather/script.js b/weather/script.js index 9998fd0..12661ae 100644 --- a/weather/script.js +++ b/weather/script.js @@ -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"; @@ -62,4 +62,4 @@ async function checkWeather(city){ searchBtn.addEventListener('click', ()=>{ checkWeather(inputBox.value); -}); \ No newline at end of file +});