Skip to content

Commit

Permalink
Wrap youtube and vimeo vids in flex-video
Browse files Browse the repository at this point in the history
  • Loading branch information
olefredrik committed Dec 13, 2015
1 parent 775578a commit fd2989d
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 fd2989d

Please sign in to comment.