blueimp / Gallery

blueimp Gallery is a touch-enabled, responsive and customizable image & video gallery, carousel and lightbox, optimized for both mobile and desktop web browsers. It features swipe, mouse and keyboard navigation, transition effects, slideshow functionality, fullscreen support and on-demand content loading.
https://blueimp.github.io/Gallery/
Other
3.75k stars 983 forks source link

datasrc supprt #238

Closed MichielsB closed 4 years ago

MichielsB commented 4 years ago

Hi,

I was trying to try the srcset support (#209), but always the original reference image is shown on the first picture (601).


<div id="links">
  <a href="https://via.placeholder.com/601x560" title="Banana" urlset="https://via.placeholder.com/801x101 801v, https://via.placeholder.com/1021x101 1021v">
    <img src="https://via.placeholder.com/800x560?text=Img1" alt="Banana" />
  </a>
  <a href="https://via.placeholder.com/802x560" title="Apple">
    <img src="https://via.placeholder.com/800x560?text=Img2" alt="Apple" />
  </a>
  <a href="https://via.placeholder.com/803x560" title="Orange">
    <img src="https://via.placeholder.com/800x560?text=Img3" alt="Orange" />
  </a>
</div>

Any idea what I'm doing wrong ?

Best regards,

MichielsB commented 4 years ago

Never mind, it was late in the evening when i did some codechanges. With a fresh head, I saw directly the mistake :-)

data-urlset="https://via.placeholder.com/801x101 801w, https://via.placeholder.com/1021x101 1021w"