-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
West Midlands | Gabriel Deng | Module-Data-Groups | Week 3 - Slide show #277
base: main
Are you sure you want to change the base?
Conversation
This has the same problem as #220 :) Please use |
I think it is now finally rebased. |
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.
This is generally looking good, but you have multiple copies of the same code a few times - can you reduce that duplication?
currentImageIndex = (currentImageIndex - 1 + images.length) % images.length; | ||
updateImage(); | ||
}); |
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.
This code looks really similar to some of the code in autoplayBack
(and same below with forwardBtn
and autoplayForward
- can you think how to avoid duplicating this code?
Thanks for sorting out the rebase! |
Learners, PR Template
Self checklist
Changelist
Briefly explain your PR.
Questions
Ask any questions you have for your reviewer.