lightcase icon indicating copy to clipboard operation
lightcase copied to clipboard

Weird embed bug

Open samuelbrooks opened this issue 8 years ago • 2 comments
trafficstars

If I'm using the same class from lightcase.init.js on more than one embed it will add borders to the second embed in the html and also remove the fullscreen button from the second embed (at least with vimeo it does)

For example

<a id="various10" class="button line-blue" data-rel="lightcase:myCollection" href="//player.vimeo.com/video/110894499">Vimeo as Iframe</a>
<a id="various10" class="button line-blue" data-rel="lightcase:myCollection" href="//player.vimeo.com/video/110894499">Vimeo as Iframe</a>

The second embed would have a border at the top and bottom while the first would not but if I create a new selector in lightcase.init.js like so

<a id="various10" class="button line-blue" data-rel="lightcase:myCollection" href="//player.vimeo.com/video/110894499">Vimeo as Iframe</a>
<a id="various1000000" class="button line-blue" data-rel="lightcase:myCollection" href="//player.vimeo.com/video/110894499">Vimeo as Iframe</a>

Neither video would have any borders in this case.

From testing it seems to happen on any video embed. Anyone know a fix that wouldn't have me creating a whole bunch of new classes for each embed?

samuelbrooks avatar Mar 29 '17 09:03 samuelbrooks

Any ideas? Still having trouble with this one :/

samuelbrooks avatar Apr 06 '17 05:04 samuelbrooks

Please, can you provide a fiddle for this? Ohterwise it is hard for me to reproduce.

Thanks

cbopp-art avatar Apr 06 '17 05:04 cbopp-art