Timeline CustomEventDetailDisplay
From SIMILE Widgets
See these various messages:
From the internet archive:
Add this code after you include timeline-api.js:
<script>
var oldFillInfoBubble = Timeline.DefaultEventSource.Event.prototype.fillInfoBubble;
Timeline.DefaultEventSource.Event.prototype.fillInfoBubble = function(elmt, theme, labeller) {
oldFillInfoBubble.call(this, elmt, theme, labeller);
var eventObject = this;
var div = document.createElement("div");
div.innerHTML = "<input type='checkbox' /> abc";
div.firstChild.onclick = function() {
... do something ... eventObject should give you the data you need ...
}
elmt.appendChild(div);
}
</script>
- http://simile.mit.edu/mail/ReadMsg?listId=9&msgId=16981
- http://simile.mit.edu/mail/ReadMsg?listId=9&msgId=18666
- http://simile.mit.edu/mail/ReadMsg?listId=9&msgId=10303
- http://simile.mit.edu/mail/ReadMsg?listId=9&msgId=14331
Related topics:

