Skip to content

Solution_js_gallery_DOM#1759

Open
elenachernyshova01-cmd wants to merge 1 commit intomate-academy:masterfrom
elenachernyshova01-cmd:master
Open

Solution_js_gallery_DOM#1759
elenachernyshova01-cmd wants to merge 1 commit intomate-academy:masterfrom
elenachernyshova01-cmd:master

Conversation

@elenachernyshova01-cmd
Copy link
Copy Markdown

Copy link
Copy Markdown

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

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

Review Summary

Your implementation successfully meets all requirements for the image gallery task. The code correctly implements event delegation on the #thumbs container, properly handles clicks on both img and a elements using e.target.closest('a'), and updates the main image with the correct href and alt attributes from the clicked thumbnail. The boundary check with thumbs.contains(link) ensures clicks outside the gallery are ignored, and e.preventDefault() prevents unwanted navigation. All checklist items pass, and no critical issues were found. Great work!


✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨

Footnotes

  1. Rate AI review example

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