Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update weather-challenge-app
  • Loading branch information
fowobi committed May 16, 2023
commit 350b9e97a4e2ae9a182cb1300e7995c7eb7b9c95
5 changes: 3 additions & 2 deletions challenge-weather-app/script.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// API keys and base URLs-Code
const weatherAPIKey = "4049c016776275cd6c7ecfb5c50961fa";
const weatherAPIKey =
"4049c016776275cd6c7ecfb5c50961fa";
const unsplashAccessKey =
"https://api.unsplash.com/search/photos?query=snow&client_id=l9KNERJAbBOq_Uy7NjwLsd4sYA0c9ZBdWDIItQrpshY";
const weatherBaseURL = "https://api.openweathermap.org/data/2.5/weather?q=";
Expand Down Expand Up @@ -93,7 +94,7 @@ searchForm.addEventListener("submit", (e) => {
console.error("Error: Please enter a city name");
}
// Clear the input field after submission
e.target.elements.city.value = "";
e.target.elements.city.value = " ";
});

updateUI("London");