Created
December 18, 2014 00:18
-
-
Save wemakeweb/a05d50203a9765b1d16c to your computer and use it in GitHub Desktop.
Revisions
-
wemakeweb revised this gist
Dec 18, 2014 . 1 changed file with 8 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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'); }); }); -
wemakeweb created this gist
Dec 18, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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'); }); })