-
Notifications
You must be signed in to change notification settings - Fork 34
Tony Griffin Responsive News Reader #24
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
base: master
Are you sure you want to change the base?
Conversation
|
|
||
| form.addEventListener("submit", function(event) { | ||
| event.preventDefault(); | ||
| console.log(event.target["0"].value); |
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 would be better to get the input using querySelector. It will make code more robust since it could break with indexes if HTML gets re-arranged
|
|
||
| searchForm(); | ||
|
|
||
| // let input = ""; |
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.
Unused code can be deleted. Otherwise it just ends up clogging up the page
| // } | ||
|
|
||
| function displayErrorToUser(){ | ||
|
|
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 would be great to see this implemented so user can be notified of any issues
|
Would be great to see a README that explains what the project does |
search function appears to work but unable to get it to update the page.
Too many stories displaying.
No pagination