The home on the web of Colin Walker.
Find out more on /about, say /EHLO, or tune in to the daily RSS feed.
Apr 10, 2021#p5
I wanted a better way than writing "Click to expand" to indicate if an image could be clicked/tapped to see a higher resolution version and came up with the idea of an overlay.
If an image can be expanded I assign the class "clickable" to the surrounding link tag then use JavaScript to add an "expand" indicator on top of the image.
