Skip to content

Instantly share code, notes, and snippets.

@moens
Created January 14, 2011 21:41
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 moens/780302 to your computer and use it in GitHub Desktop.
Save moens/780302 to your computer and use it in GitHub Desktop.
this is the javascript that you might need to use CeeBox for Vzaar
vzaar: { //http://view.vzaar.com/nnnnnn.video
siteRgx : /view\.vzaar\.com/i,
idRgx: /(?:\.com\/)([0-9]+)(?:\.video)/i,
src : "http://view.vzaar.com/[id].flashplayer" //http://view.vzaar.com/nnnnnn.flashplayer
}
...you might use it like this:
<script>
$(document).ready(function(){
$.extend($.fn.ceebox.videos,{
vzaar: {
siteRgx: /view\.vzaar\.com/i,
idRgx: /(?:\.com\/)([0-9]+)(?:\.video)/i,
src: "http://view.vzaar.com/[id].flashplayer"
}
});
$(".video").ceebox();
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment