Gold Challenge: Random Otters
Write a function that changes the data-image-url
of a random otter thumbnail so that the detail image no longer matches the thumbnail.
Use the URL of an image of your choosing (though a web
search for “tacocat” should provide a good one).
For an extra challenge, write a function that resets your
otter thumbnails to their original data-image-url
values and changes another one at random.
Get Front-End Web Development: The Big Nerd Ranch Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.