-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
9.3 Weather App Project #25
base: main
Are you sure you want to change the base?
Conversation
//This removes the "no previous searches" text after you input a location | ||
document.querySelector(".hide").setAttribute("style", "display: none"); | ||
|
||
form.reset(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like resetting your form is the last thing you are doing but you should do it almost immediately after you grab the event value. (Id recommend in your fetch after calling createWeatherForecast()
in getWeatherInfo()
)
function extractUserLocation(url) { | ||
const inputLocation = url.split(/[/?]/)[3].replace("%20", " "); | ||
return inputLocation; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like you don't have code for the temperature conversion
I've come to an impasse with the Previous Searches, if i had more time i can rewrite my entire code to then allow for easier functionality but due to time constraints, i think i may have to call it here and focus on the portfolio project.