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

Tests pass save for Previous Search and Three Day Forecast #19

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

figgeryboo
Copy link

Will return to update CSS.

//

function currentWeather(weatherData, city) {
let area = weatherData.nearest_area[0].areaName[0].value;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to remove the "Choose a location to view the weather" instead of hiding it


let currently = weatherData.current_condition[0].FeelsLikeF;
let currentlyP = document.createElement('p');
currentlyP.textContent = `Feels like it's ${currently}°F.`;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This string is different from what the tests and examples expect/show

//
//
//

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.

At the moment, every time a search is made the new location is added to the page instead of replacing the previous search. See image
Screenshot 2023-01-13 at 12 01 54 PM

There are a few ways to handle this. You can have a conditional that checks whether that code was already created an needs to be updated or if it wasn't create it - you create it.

Or you can delete the whole section and create it every time a search is made.

Those are just two ways to do it. I am sure there are more.

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