Every repository with this icon (
Every repository with this icon (
tree 3cee64ef8eac7a513518ea7aa00da3d29035a63c
parent d171b78a78413fb7907179f2d4481071decc0fd9
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Sun Apr 20 19:35:00 -0700 2008 | [stephencelis] |
| |
MIT-LICENSE | Sun Apr 20 19:35:00 -0700 2008 | [stephencelis] |
| |
README.markdown | Mon Apr 21 09:05:53 -0700 2008 | [stephencelis] |
| |
TODO | Mon Apr 21 08:38:56 -0700 2008 | [stephencelis] |
| |
example/ | Tue Apr 22 14:53:34 -0700 2008 | [stephencelis] |
| |
timeframe.js | Tue Apr 22 13:40:52 -0700 2008 | [stephencelis] |
Timeframe
Click-draggable. Range-makeable. A better calendar.
The code:
new Timeframe(element, options);
Options available:
calendars: The number of calendar months showing at once (default:2).format: The strftime format for the dates in the input fields (default:%b %d, %Y).weekoffset: The weekday offset (use1to start the week on Monday).startfield,endfield: Declare the range start and end input tags (by default, these are generated with the timeframe).previousbutton,todaybutton,nextbutton,resetbutton: Declare the navigational buttons (these are also generated by default with the timeframe).
Notes
- I'm just sick of multiple date pickers on the same page.
Also!!:
The startfield and endfield are parsed with Date.parse(), so feel free
to use Datejs for ninja-quick date-parsing.
An example:
<script type="text/javascript" charset="utf-8">
//<![CDATA[
new Timeframe('calendars', {
startfield: 'start',
endfield: 'end',
previousbutton: 'previous',
todaybutton: 'today',
nextbutton: 'next',
resetbutton: 'reset' });
//]]>
</script>
See it in action here.
Dependencies
Timeframe requires Prototype 1.6 or higher.
Download
Find the latest version of Timeframe on Github.
More information can be found at here.
Copyright (c) 2008 Stephen Celis, released under the MIT license.




