miromannino / Justified-Gallery

Javascript library to help creating high quality justified galleries of images. Used by thousands of websites as well as the photography community 500px.
http://miromannino.github.io/Justified-Gallery/
MIT License
1.68k stars 298 forks source link

I can't embed videos in a href tag #383

Open grafika-x opened 1 year ago

grafika-x commented 1 year ago

No-image entry: text or video entry if I use selector : 'div, div:not(.spinner)'

<div style="height: 50px; width: 200px;">
         <a href="..." style="position: absolute; bottom: 10px; right: 10px;">Next entries...</a>
     </div>

how do i get a video in the click box?

<div style="height: 50px; width: 200px; background: red;" ><img alt="preview" src="preview.jpg" />
        <a href="video???" style="position: absolute; bottom: 50px; right: 10px;">Next entries...</a>
    </div>

when I force the a href of the video shortcut via javascript, the entire gallery preview opens for me

I need it to work for me as with img, i.e. I click on the preview image and the video opens for me, so that it is part of the gallery, or to make it work like pictures.

Thanks for advice