Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/a8m/fb-cal
fb-cal repo
https://github.com/a8m/fb-cal
Last synced: about 1 month ago
JSON representation
fb-cal repo
- Host: GitHub
- URL: https://github.com/a8m/fb-cal
- Owner: a8m
- Created: 2014-10-25T20:24:26.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-10-27T21:18:06.000Z (about 10 years ago)
- Last Synced: 2024-04-16T00:19:52.103Z (7 months ago)
- Language: JavaScript
- Homepage: http://a8m.github.io/fb-cal/
- Size: 258 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#fb-cal [![Build Status](https://travis-ci.org/a8m/fb-cal.svg?branch=master)](https://travis-ci.org/a8m/fb-cal) [![Coverage Status](https://img.shields.io/coveralls/a8m/fb-cal.svg)](https://coveralls.io/r/a8m/fb-cal?branch=master)
**Usage:**
Run tests (unit, e2e)
```sh
$ grunt test
```
Run build (compass, concat, uglify, etc.. to **dist** directory).
```sh
$ grunt build
```
**Run Examples** Create daily events from you browser console
```js
layOutDay([
{ start: 30, end: 150 },
{ start: 90, end: 150 },
{ start: 560, end: 620 },
{ start: 620, end: 710 },
{ start: 220, end: 280 },
{ start: 510, end: 640 },
{ start: 650, end: 715 },
{ start: 310, end: 390 },
{ start: 340, end: 400 },
{ start: 320, end: 480 },
{ start: 60, end: 120 },
{ start: 120, end: 200 }
]);
```
**More Examples**
```js
//#1
layOutDay([
{ start: 30, end: 150 },
{ start: 60, end: 150 },
{ start: 560, end: 620 },
{ start: 610, end: 670 },
{ start: 620, end: 670 }
]);
//#2
layOutDay([
{ start: 30, end: 150 },
{ start: 540, end: 660 },
{ start: 560, end: 620 },
{ start: 620, end: 700 },
{ start: 310, end: 390 },
{ start: 340, end: 400 },
{ start: 320, end: 480 },
{ start: 60, end: 120 },
{ start: 120, end: 200 }
]);
//#3
layOutDay([
{ start: 10, end: 60 },
{ start: 100, end: 190 },
{ start: 120, end: 200 },
{ start: 205, end: 290 },
{ start: 310, end: 390 },
{ start: 340, end: 400 },
{ start: 320, end: 480 },
{ start: 60, end: 120 },
{ start: 120, end: 200 },
{ start: 440, end: 500 },
{ start: 540, end: 640 },
{ start: 640, end: 700 },
{ start: 620, end: 700 },
]);
```
#TODO:
* Make it more configurable
* Add month/year calender view
* expose API to work with him