One day calendar view for scheduling and display events
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
css
src
README.md
index.html

README.md

one-day-calendar

Calendar view for scheduling and display events of one day.

Input data: events array

/**
 * An array of event objects. Each event object consists of a start and end
 *  time  (measured in minutes) from 9am, as well as a unique id. The
 *  start and end time of each event will be [0, 720]. The start time should
 *  be less than the end time.
 */
var events = [
  {
    /**
    * @type {Number}
    */
    id: 0,

    /**
    * @type {Number} time in minuts from 0
    */
    start: 60, // 10am

    /**
    * @type {Number} time in minuts from 0
    */
    end: 120 // 11am
  } /*, other events*/
];

Demo: http://juliarechkunova.github.com/one-day-calendar/