HTML Diff
0 added 0 removed
Original 2026-01-01
Modified 2026-03-09
1 <p>We found all of the images on the page. All that is now left for you to do is program the logic. The interaction should work as follows: The user clicks on the preview. → The large image changes.</p>
1 <p>We found all of the images on the page. All that is now left for you to do is program the logic. The interaction should work as follows: The user clicks on the preview. → The large image changes.</p>
2 <p>The first step is to add click handlers for each thumbnail. All of the thumbnails are stored in the thumbnails collection. We can search through this collection in a loop by adding a click handler to the current item in the collection. So we add a handler to each thumbnail.</p>
2 <p>The first step is to add click handlers for each thumbnail. All of the thumbnails are stored in the thumbnails collection. We can search through this collection in a loop by adding a click handler to the current item in the collection. So we add a handler to each thumbnail.</p>
3 <p>Inside the handler, output a string to the console and then try to click on the thumbnails. This will allow us to test that the handlers work.</p>
3 <p>Inside the handler, output a string to the console and then try to click on the thumbnails. This will allow us to test that the handlers work.</p>