I'm trying to get a YouTube embed to open up in a Fancybox. I've based it on the code on the Fancybox page — http://fancyapps.com/fancybox
Here is what I have:
<a class="various fancybox" href="https://www.youtube.com/embed/jid2A7ldc_8?autoplay=1">Youtube (iframe)</a>
And then in call.js
$(document).ready(function() {
$(".various").fancybox({
maxWidth : 800,
maxHeight : 600,
fitToView : false,
width : '70%',
height : '70%',
autoSize : false,
closeClick : false,
openEffect : 'none',
closeEffect : 'none'
});
})
But each time I click the link, it just opens up the YouTube video full-screen in the same window... not in a Fancybox
I've check to make sure my Js files are loading and they are, also I'm getting no errors in the FF console.
Can anyone see what I'm doing wrong?
fancybox.iframe
on the demo page... just I had no idea that actually affected how it worked! I'll go with thedata-fancybox-type
attribute though I think – Envious