Created
January 14, 2011 21:41
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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