a js timeline
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
compiled
sample
source
Makefile
README.md

README.md

TIMELINE.JS

Add a timeline to a app

Usage

var timeline = new TimeLineUI(config)//config is optional

defaultConfig: {
  currentDate: 2012-7-15   // default active date
  , showedNum: 7           // the number of dates showed
  , liWidth: 120           // width of each item
  , callback: undefined    // fired when active date changes
  , id: '#timeline'        // a block the timeline will be added
}