R0Y15 / WeatherNow

A Weather Forecasting website that tells you precisely about weather
https://r0y15.github.io/WeatherNow/
28 stars 67 forks source link

--Added updateBackground function for currentLocation and getWeather #134

Closed atinder-harika closed 4 weeks ago

atinder-harika commented 4 weeks ago

Issue #98 Changing Backgrounds with weather

Originally the background was just a URL which was being resued for all weather. So, I added a function called updateBackground() to both script.js and geolocation.js that updates the background url dinamically with each new search. If in future you wish to change the images all you have to do is change the URL for each weather type in the function.

Here are a few examples of this feature in action!

Kindly merge this before 31 Oct East Pacific time to make it count towards hacktoberfest! Screenshot 2024-10-31 153441 Screenshot 2024-10-31 153452 Screenshot 2024-10-31 153503 Screenshot 2024-10-31 153531 Screenshot 2024-10-31 153542

R0Y15 commented 4 weeks ago

@atinder-harika Great work buddy.