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

Quite a challenge! #19

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

Quite a challenge! #19

wants to merge 30 commits into from

Conversation

joelamb
Copy link

@joelamb joelamb commented Sep 23, 2018

localStorage proved very challenging, more time spent planning the structure of the app would have made development faster, but still a really enjoyable project. Just wish I could have got more done.

searchFilmBytitle(params.query);
currentPageNum.textContent = params.pageNum;
document.querySelector('#film-details').innerHTML = '';
e.stopPropagation();
Copy link
Collaborator

Choose a reason for hiding this comment

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

is stopPropagation needed?

const prevPage = document.querySelector('#page-nav .prev');
prevPage.addEventListener('click', e => {
e.preventDefault();
params.pageNum > 1 ? params.pageNum-- : false; // Prevent previous page returning negative page number
Copy link
Collaborator

Choose a reason for hiding this comment

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

if might work better here since we do not need the false

Copy link
Author

Choose a reason for hiding this comment

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

Resolved: if() substituted for ternary.


/* infinite scroll */
const infiniteScroll = () => {
const trigger = document.querySelector('#');
Copy link
Collaborator

Choose a reason for hiding this comment

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

what does this do?

Copy link
Author

Choose a reason for hiding this comment

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

Resolved. It's a TODO feature to add infinite scroll to search results

@dmitrigrabov
Copy link
Collaborator

Good work

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