MinnPost / jquery-vertical-timeline

jQuery plugin of: A beautiful vertical timeline made with Tabletop.js, Isotope.js & Handerlbarz.js. A collaboration between Balance Media and WNYC/John Keefe.
http://code.minnpost.com/jquery-vertical-timeline/
Other
122 stars 27 forks source link

Possible to use without tabletop? Connect directly to javascript array #1

Closed larserikfinholt closed 11 years ago

larserikfinholt commented 11 years ago

Hi! It would be very nice to add an option for providing the data as js array instead of using the google spreadsheet.

Any hints to how it could be done?

zzolo commented 11 years ago

Hi @larserikfinholt. Great question.

This is no current way to do this without hacking the library. But this is a good feature, so I'll keep open.

zzolo commented 11 years ago

Just to follow up on how you might quickly hack it together. The following lines is the line that makes the call to get the data from the spreadsheet: https://github.com/MinnPost/jquery-vertical-timeline/blob/master/js/jquery-veritcal-timeline.js#L398

You can change this to use a provided data source in the options, then you would want to call the postProcess callback then the verticalTimeline.setupTimeline with your data.

In theory. There are probably some minor details I am missing.

zzolo commented 11 years ago

I just added this feature: https://github.com/MinnPost/jquery-vertical-timeline/commit/c8c20b59b7a64409d263451a074e98038c12706f

Let me know how it all works.

hupili commented 11 years ago

:+1: This feature is awesome. I try to survey timeline libraries today and find that many libraries do more things than mere rendering, making it hard to use.

I built my aggregated timeline from multiple SNS using this lib,

http://hupili.net/tl-social.html

Looks much better than the timelineJS I previously tried,

http://hupili.net/tl-social-back.html

Sincerely hope this gets merged to upstream. Or more people will go away after reading the readme of original repo.

https://github.com/wnyc/Timeline/pull/6