Skip to content

Instantly share code, notes, and snippets.

@lawrencebrown
Created October 12, 2013 09:19
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 lawrencebrown/6947808 to your computer and use it in GitHub Desktop.
Save lawrencebrown/6947808 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
jQuery('iframe.vimeo').each(function(){
Froogaloop(this).addEvent('ready', ready);
});
function ready(playerID){
Froogaloop(playerID).addEvent('play', function(data) {play(playerID);});
}
function play(playerID){
alert(playerID + " is playing!!!");
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment