nicolas-t/Chocolat

Have an image appear by url

tonhaarmans opened this issue · 3 comments

It would be handy if I could send someone a link like http://somesite.com/gallery.html#someimagetitle and this would show the image with the title 'someimagetitle'...

Hello,

This is out of the scope of the scope of this library, but it can be achieved from outside of chocolat.

By checking if the url contains a hash (on page load)
If it does, using the api (https://github.com/nicolas-t/Chocolat/blob/master/dist/index.html#L179) you can open the right image in the slideshow

cool !

i'm closing