Have an image appear by url
tonhaarmans opened this issue · 3 comments
tonhaarmans commented
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'...
nicolas-t commented
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
tonhaarmans commented
Yes, I got it together. If you want have a look on https://www.wideopenwindows.be/gallery.html <https://www.wideopenwindows.be/gallery.html> and https://www.wideopenwindows.be/js/setup <https://www.wideopenwindows.be/js/setup>.js
Greetings!
… On 25 Aug 2018, at 11:49, Nicolas Turlais ***@***.***> wrote:
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 <https://github.com/nicolas-t/Chocolat/blob/master/dist/index.html#L179>) you can open the right image in the slideshow
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#86 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/Ajr1qjmzvVuh47okMi6IuHNh1zG5hItgks5uUR21gaJpZM4TDjYZ>.
nicolas-t commented
cool !
i'm closing