Micro.blog

jsonbecker
jsonbecker

I was thinking about using Photoswipe.js to my blog, but thanks to this post I’ve discovered glightbox, which has gallery support. Adding this should be fun.

bix
bix

@jsonbecker Hm. Bookmarked for later.

In reply to
bix
bix

@jsonbecker So, some docs seem to indicate the class=“glightbox” should be on the img while some docs seem to say it goes on the href. It only seems to work on my site if it's on the href, but then strangely it doesn't work at all on mobile Safari, although your example does.

bix
bix

@jsonbecker Never mind. I think mobile Safari was caching my page and so didn't actually have the scripts being loaded.

shindakun
shindakun

@bix I believe that's correct, I don't recall why I left them on the img's in my example. (Likely because it happened to work and I was lazy lol, I should probably add a note just in case.)