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

Homework 4 submission for Dylan Graham #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dylantg
Copy link

@dylantg dylantg commented Oct 7, 2017

No description provided.

}

function clearInput() {
$("#city-type").val("");
Copy link

Choose a reason for hiding this comment

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

@dylantg if you use toLowerCase() it willl cover if the input was entered with a upper case.

Copy link
Author

Choose a reason for hiding this comment

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

I have var cleanedSearchInput = searchInput.trim().toLowerCase(); on Line 16 to allow for various inputs.

Copy link

Choose a reason for hiding this comment

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

@dylantg apologies

}
// If no match, give an alert, remove background image, and clear the input
else {
alert("Sorry, we don't recognize input: " + searchInput + "\n Try again");
Copy link

Choose a reason for hiding this comment

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

@dylantg nice to have an error message 💯

@rmjames
Copy link

rmjames commented Oct 12, 2017

@dylantg excellent work on your assignment 👍

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

Successfully merging this pull request may close these issues.

2 participants