-
-
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
SOUTH AFRICA CPT-ITP | LUKE MANYAMAZI | MODULE DATA GROUPS | SLIDE SHOW | WEEK 3 #278
base: main
Are you sure you want to change the base?
SOUTH AFRICA CPT-ITP | LUKE MANYAMAZI | MODULE DATA GROUPS | SLIDE SHOW | WEEK 3 #278
Conversation
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.
Excellent work! You've successfully implemented all the requirements outlined in the README file. While styling wasn't a primary focus, I must commend your clean and thoughtful approach. The carousel, complete with hover effects, is well-executed and visually appealing.
Here's a challenge for you: consider adding a feature that pauses the sliding animation when the user hovers over the slides. This would enhance user interaction and make your implementation even more dynamic.
Sprint-3/slideshow/slideshow.js
Outdated
dots[slideIndex].className += " active"; | ||
} | ||
|
||
document.querySelector('.prev').addEventListener('click', () => { |
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 is a common practice that while selecting your html elements, it is better to organize them at the beginning of your script. You defined your img element at the beginning, also define other elements at the same place.
Thank you! I will work on the challenge.
…On Wed, Jan 8, 2025 at 11:33 PM Halil Ibrahim Celik < ***@***.***> wrote:
***@***.**** approved this pull request.
Excellent work! You've successfully implemented all the requirements
outlined in the README file. While styling wasn't a primary focus, I must
commend your clean and thoughtful approach. The carousel, complete with
hover effects, is well-executed and visually appealing.
Here's a challenge for you: consider adding a feature that pauses the
sliding animation when the user hovers over the slides. This would enhance
user interaction and make your implementation even more dynamic.
------------------------------
In Sprint-3/slideshow/slideshow.js
<#278 (comment)>
:
> + slideIndex = images.length - 1;
+ } else {
+ slideIndex = index;
+ }
+ imgElement.src = images[slideIndex];
+ updateDots()
+}
+
+function updateDots() {
+ for (let i = 0; i < dots.length; i++) {
+ dots[i].className = dots[i].className.replace(" active", "");
+ }
+ dots[slideIndex].className += " active";
+}
+
+document.querySelector('.prev').addEventListener('click', () => {
It is a common practice that while selecting your html elements, it is
better to organize them at the beginning of your script. You defined your
img element at the beginning, also define other elements at the same place.
—
Reply to this email directly, view it on GitHub
<#278 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BLZ6TQHXO2O3LS4Z4KUNCLT2JWKTFAVCNFSM6AAAAABUXUWIJ6VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDKMZYGMZDGNJTGM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Learners, PR Template
Self checklist
Changelist
Briefly explain your PR.
Questions
Ask any questions you have for your reviewer.