Hello, We've recently upgraded the version of timeline used on http://www.madeinlocal.com/ . While doing so, the initialization code got reworked. It contains some useful features summarized below, so I post it here in the hope that it will be useful.
Features: * Once the timeline is loaded, it's centered automatically on the next upcoming event. * Start and End markers are automatically created, so the user has a visual hint about the period of time for which events are available. * Timeline start and end are set automatically in a similar manner, so the user cannot scroll past the interesting period. * Date labels are changed from the ugly "Mon, 31 Dec 1094 18:00:00 GMT" to something nice and localized. We're using the Llamalab Date library [1] for the formatting. Note that the code is using the Prototype JS library (but it should be fairly easy to remove that dependency). @ developers: feel free to add this somewhere on the wiki as an example. Best regards, Jonas [1] http://www.llamalab.com/js/date/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
timeline.js
Description: application/javascript
