Jonas Wagner wrote:
> Hello,
>
>> Is there a way to NOT show the day, month and GMT text which appears
>> in light gray underneath the text in the event bubble?
> You can overwrite the function which formats those labels. Add something
> along those lines of Javascript after including the timeline files:
>
> Timeline.GregorianDateLabeller.labelPrecise = function(date) {
> date = SimileAjax.DateTime.removeTimeZoneOffset(date, this._timeZone);
>
> return '' + date.getFullYear() + '-' +
> (date.getMonth() + 1) + '-' +
> date.getDate();
> }
>
> As it is written, it should display the dates like 2009-07-28; adjust
> the last line according to your desired format.
>
> Best,
> Jonas
I just tried this but found it would only work if you added .prototype
to the function name (I also show a different output format from Jonas'
version):
var month_names = new Array("January", "February", "March", "April",
"May", "June", "July", "August", "September", "October", "November",
"December");
Timeline.GregorianDateLabeller.prototype.labelPrecise = function(date) {
date = SimileAjax.DateTime.removeTimeZoneOffset(date, this._timeZone);
return '' + date.getDate() + ' ' +
month_names[date.getMonth()] + ', ' +
date.getFullYear();
}
Doug
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SIMILE Widgets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/simile-widgets?hl=en
-~----------~----~----~----~------~----~------~--~---