Skip to content

Instantly share code, notes, and snippets.

@wemakeweb
Created December 18, 2014 00:18
Show Gist options
  • Select an option

  • Save wemakeweb/a05d50203a9765b1d16c to your computer and use it in GitHub Desktop.

Select an option

Save wemakeweb/a05d50203a9765b1d16c to your computer and use it in GitHub Desktop.

Revisions

  1. wemakeweb revised this gist Dec 18, 2014. 1 changed file with 8 additions and 5 deletions.
    13 changes: 8 additions & 5 deletions raph.js
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,10 @@
    $(function() {
    $('.play-video-1').on('click', function() {
    $(this).find('img').replaceWith('<iframe class="vids" src="https://player.vimeo.com/video/98551986?title=1&byline=0&portrait=&color=417071&autoplay=true" width="350" height="197" frameborder="0"webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>'
    );
    $(this).parent().removeClass('second-effect');
    });
    })
    $(this)
    .find('img')
    .replaceWith('<iframe class="vids" src="https://player.vimeo.com/video/98551986?title=1&byline=0&portrait=&color=417071&autoplay=true" width="350" height="197" frameborder="0"webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>');
    $(this)
    .parent()
    .removeClass('second-effect');
    });
    });
  2. wemakeweb created this gist Dec 18, 2014.
    7 changes: 7 additions & 0 deletions raph.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    $(function() {
    $('.play-video-1').on('click', function() {
    $(this).find('img').replaceWith('<iframe class="vids" src="https://player.vimeo.com/video/98551986?title=1&byline=0&portrait=&color=417071&autoplay=true" width="350" height="197" frameborder="0"webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>'
    );
    $(this).parent().removeClass('second-effect');
    });
    })