en.javascript.info/2-ui/2-events/04-default-browser-action/3-image-gallery/solution.md
Ilya Kantor ab9ab64bd5 up
2017-03-21 14:41:49 +03:00

1 line
171 B
Markdown

The solution is to assign the handler to the container and track clicks. If a click is on the `<a>` link, then change `src` of `#largeImg` to the `href` of the thumbnail.