Hello: The timeline at the following URL has recently (within the last couple of weeks, I'd guess) stopped displaying and I wonder if someone can help me to figure out why and how I might fix it. I should say that I don't have JavaScript skills to speak of (someone else put this together for me) but I can follow directions pretty well. ;-)
http://trilogy.brynmawr.edu/speccoll/quakersandslavery/resources/timeline.php The script in the header is thus: <script type="text/javascript">Timeline_urlPrefix = "http://static.simile.mit.edu/timeline/api-2.3.0/";</script> <script src="http://static.simile.mit.edu/timeline/api-2.3.0/timeline-api.js?bundle=true" type="text/javascript"></script> <script type="text/javascript"> var t1; function onLoad() { var eventSource = new Timeline.DefaultEventSource(); var bandInfos = [ Timeline.createHotZoneBandInfo({ zones: [ { start: "Jan 01 1657 00:00:00 GMT", end: "Jan 01 1870 00:00:00 GMT", magnify: 0.3, unit: Timeline.DateTime.YEAR }//, /* { start: "Jan 01 1657 00:00:00 GMT", end: "Jan 01 1870 00:00:00 GMT", magnify: 0.8, unit: Timeline.DateTime.YEAR }*/ ], timeZone: -5, eventSource: eventSource, date: "Jan 01 1657 00:00:00 GMT", width: "100%", intervalUnit: Timeline.DateTime.YEAR, intervalPixels: 120 }), Timeline.createHotZoneBandInfo({ zones: [ { start: "Jan 01 1657 00:00:00 GMT", end: "Jan 01 1870 00:00:00 GMT", magnify: 0.3, unit: Timeline.DateTime.YEAR } ], timeZone: -5, eventSource: eventSource, date: "Jan 01 1657 00:00:00 GMT", width: "15%", intervalUnit: Timeline.DateTime.YEAR, intervalPixels: 120 }) ]; bandInfos[1].syncWith = 0; bandInfos[1].highlight = true; tl = Timeline.create(document.getElementById("my-timeline"), bandInfos); Timeline.loadXML("timeline.xml", function(xml, url) { eventSource.loadXML(xml, url); }); var resizeTimerID = null; function onResize() { if (resizeTimerID == null) { resizeTimerID = window.setTimeout(function() { resizeTimerID = null; tl.layout(); }, 500); } } var theme = Timeline.ClassicTheme.create(); theme.ether.backgroundColors[1] = theme.ether.backgroundColors[0]; Timeline.DefaultEventSource.Event.prototype.fillInfoBubble = function(elmt, theme, labeller) { var doc = elmt.ownerDocument; var title = this.getText(); var link = this.getLink(); var image = this.getImage(); if (image != null) { var img = doc.createElement("img"); img.src = image; theme.event.bubble.imageStyler(img); elmt.appendChild(img); } var divTitle = doc.createElement("div"); var textTitle = doc.createTextNode(title); if (link != null) { var a = doc.createElement("a"); a.href = link; a.appendChild(textTitle); divTitle.appendChild(a); } else { divTitle.appendChild(textTitle); } theme.event.bubble.titleStyler(divTitle); elmt.appendChild(divTitle); var divBody = doc.createElement("div"); this.fillDescription(divBody); theme.event.bubble.bodyStyler(divBody); elmt.appendChild(divBody); var divWiki = doc.createElement("div"); this.fillWikiInfo(divWiki); theme.event.bubble.wikiStyler(divWiki); elmt.appendChild(divWiki); }; } </script> I would welcome any advice anyone might have. Thank you! John Anderies Haverford College Special Collections -- You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/simile-widgets. For more options, visit https://groups.google.com/groups/opt_out.
