lightcase icon indicating copy to clipboard operation
lightcase copied to clipboard

Can I instead of href use src atr for getting the source file?

Open adamwojt opened this issue 6 years ago • 1 comments

I am using below html for my hashtagged gallery:

<img data-gallery-tag="#men" 
       class="gallery-item " 
       src="men-2.jpg"
       data-label="Test">

I run script as per your website but changing a with img:

<script type="text/javascript">
	jQuery(document).ready(function($) {
		$('img[data-rel^=lightcase]').lightcase();
	});
</script>


Works fine if I add href to my img.

I would like to specify lightcase to take src for <img> and href for <a>

adamwojt avatar Dec 06 '18 18:12 adamwojt

As described in the docs you can use the attribute data-lc-href as an alternative to href.

cbopp-art avatar Dec 06 '18 20:12 cbopp-art