Created
July 21, 2011 20:05
-
-
Save runemadsen/1098075 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var davids_data = { | |
timeline : { | |
name : "My Timeline", | |
annotations : [ | |
{ start: 1, end : 34, type : "highlight", text : "Lorem Ipsum" }, | |
// a2, | |
// a3, | |
// a4 | |
] | |
} | |
}; | |
player.addData(davids_data); | |
player.addEventListener("annotation", function(e) { | |
console.log(e.data); // Annotation object | |
}); | |
// or | |
player.addEventListener("annotation.highlight", function(e) { | |
console.log(e.data); // Annotation object | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment