Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question re fluidvids.render() #29

Open
nickpish opened this issue Nov 17, 2014 · 0 comments
Open

Question re fluidvids.render() #29

nickpish opened this issue Nov 17, 2014 · 0 comments

Comments

@nickpish
Copy link

Hi, I'm using the following jQuery click function to swap in a YouTube video for an image using the data-video attribute:

$('img.play-video').click(function(){
        video = '<iframe width=560 height=315 frameborder="0" allowfullscreen src="'+ $(this).attr('data-video') +'"></iframe>';
        $(this).replaceWith(video);          
    });

I'm wondering if I can apply fluidvids to a video inserted in this way, perhaps by using fluidvids.render(), and if so, how I would go about implementing it? Is this something I'd reference in the click function itself? Thanks for any assistance here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant