Skip to content

Instantly share code, notes, and snippets.

@issackelly
Created November 5, 2010 20:01
Show Gist options
  • Save issackelly/664691 to your computer and use it in GitHub Desktop.
Save issackelly/664691 to your computer and use it in GitHub Desktop.
timeEvents = Object()
timeEvents["#somevid"]["125"] = function(){ $("#somediv").show() }
function timeListener(el) {
$(el).bind('timeupdate', function(){
time = this.currentTime;
if timeEvents[el][time]
timeEvents[el][time]()
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment