Skip to content

Instantly share code, notes, and snippets.

@rymai
Created April 18, 2011 09:33
Show Gist options
  • Select an option

  • Save rymai/925078 to your computer and use it in GitHub Desktop.

Select an option

Save rymai/925078 to your computer and use it in GitHub Desktop.
SublimeVideo: Custom play button JavaScript code (jQuery)
sublimevideo.ready(function() {
$("img.custom_play_button").each(function() {
$(this).click(function(event) {
event.preventDefault();
// Hide the posterframe and prepare and play the video
sublimevideo.prepareAndPlay($(this).attr("id").replace(/^posterframe_/, ""));
$(this).hide();
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment