https://github.com/samccone/thyme
a lightweight, minimal, and present-focused calendar renderer
https://github.com/samccone/thyme
Last synced: 3 months ago
JSON representation
a lightweight, minimal, and present-focused calendar renderer
- Host: GitHub
- URL: https://github.com/samccone/thyme
- Owner: samccone
- Created: 2013-04-23T00:56:13.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-04-27T17:39:09.000Z (about 13 years ago)
- Last Synced: 2025-03-23T04:27:25.208Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 355 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Thyme
a lightweight, minimal, and present-focused calendar renderer
[](https://travis-ci.org/samccone/thyme)
API
---
```js
// renders a new calendar initialized at the current month
myCalendar = new Thyme(document.getElementById('#cal'));
// jump to and render next/prev month
myCalendar.nextMonth();
myCalendar.prevMonth();
// gets a specific day's dom node (in the current month)
myCalendar.getDay('11'); // returns dom element
// get's the currently displayed month and year
myCalendar.renderedMonth(); // returns { month: 5, year: 2013 }
// jump and render the containing dates month
myCalenday.currentDate = //must be a valid date object
myCalendar.render();
```
#### TESTING
`$ npm install mocha `
`$ mocha test `