Skip to content

Instantly share code, notes, and snippets.

@zires
Created October 9, 2013 14:12
Show Gist options
  • Select an option

  • Save zires/6901963 to your computer and use it in GitHub Desktop.

Select an option

Save zires/6901963 to your computer and use it in GitHub Desktop.
You can use jquery events to create your own callbacks for timelineJS
$('#timeline-embed').delegate(".vco-timeline", "UPDATE", function () {
console.log('UPDATE', this);
});
$('#timeline-embed').delegate(".vco-timeline", "LOADED", function () {
console.log('LOADED', this);
});
$('#timeline-embed').delegate(".marker", "click", function () {
console.log('.marker', this);
});
$('#timeline-embed').delegate(".nav-next", "click", function () {
console.log('.nav-next', this);
});
$('#timeline-embed').delegate(".nav-previous", "click", function () {
console.log('.nav-previous', this);
});
$('#timeline-embed').delegate(".zoom-in", "click", function () {
console.log('.zoom-in', this);
});
$('#timeline-embed').delegate(".zoom-out", "click", function () {
console.log('.zoom-out', this);
});
$('#timeline-embed').delegate(".back-home", "click", function () {
console.log('.back-home', this);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment