Skip to content

Instantly share code, notes, and snippets.

@kmgdevelopment
Last active September 4, 2016 09:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kmgdevelopment/09125d1ed30c5b84b08948041169cbbe to your computer and use it in GitHub Desktop.
Save kmgdevelopment/09125d1ed30c5b84b08948041169cbbe to your computer and use it in GitHub Desktop.
<a href="https://vimeo.com/180766765">Watch Video</a>
<div id="video-wrap"></div>
<script>
$('a').on('click', function(e){
e.preventDefault();
var videoUrl = $(this).attr('href');
var playerOpts = {
url: videoUrl,
color: '419d8c'
};
var player = new Vimeo.Player('video-wrap', playerOpts);
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment