Skip to content
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

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Conversation

SangunPark96
Copy link

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.

//This removes the "no previous searches" text after you input a location
document.querySelector(".hide").setAttribute("style", "display: none");

form.reset();
Copy link

@Angiepmunoz Angiepmunoz Jan 13, 2023

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;
}

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants