Skip to content

Commit

Permalink
Merge pull request olefredrik#620 from olefredrik/flexVideo
Browse files Browse the repository at this point in the history
Wrap youtube and vimeo vids in flex-video
  • Loading branch information
olefredrik committed Dec 13, 2015
2 parents 775578a + fd2989d commit 5158a3d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions assets/javascript/custom/flex-video.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
jQuery( 'iframe[src*="youtube.com"]').wrap("<div class='flex-video widescreen'/>");
jQuery( 'iframe[src*="vimeo.com"]').wrap("<div class='flex-video widescreen vimeo'/>");

0 comments on commit 5158a3d

Please sign in to comment.