|
| 1 | +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
| 2 | + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
| 3 | +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es"> |
| 4 | +<head> |
| 5 | + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
| 6 | + <title>Simple Range Picker js component | GitHub</title> |
| 7 | + <link rel="stylesheet" href="stylesheets/main.css" type="text/css" media="all" charset="utf-8" /> |
| 8 | + <link rel="stylesheet" href="stylesheets/rangepicker.css" type="text/css" media="screen" charset="utf-8" /> |
| 9 | +</head> |
| 10 | +<body> |
| 11 | + <a href="https://github.com/etrepat/simplerangepicker"><img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub" /></a> |
| 12 | + |
| 13 | + <div id="container"> |
| 14 | + |
| 15 | + <div class="download"> |
| 16 | + <a href="https://github.com/etrepat/simple-range-picker/zipball/master"><img border="0" width="90" src="https://github.com/images/modules/download/zip.png"></a> |
| 17 | + <a href="https://github.com/etrepat/simple-range-picker/tarball/master"><img border="0" width="90" src="https://github.com/images/modules/download/tar.png"></a> |
| 18 | + </div> |
| 19 | + |
| 20 | + <h1><a href="https://github.com/etrepat/simple-range-picker">Simple Range Picker</a></h1> |
| 21 | + |
| 22 | + <div class="description"> |
| 23 | + Yet another javascript date picker component |
| 24 | + </div> |
| 25 | + |
| 26 | + <h2>Motivation</h2> |
| 27 | + <p> |
| 28 | + Inspiration for this component came from the Flash-based date range |
| 29 | + picker you can see on <em>Google Analytics</em> and |
| 30 | + <a href="http://stephencelis.com/" title="Stephen Celis's">Stephen Celis's</a> |
| 31 | + <a href="http://stephencelis.github.com/timeframe" title="Timeframe">Timeframe</a> |
| 32 | + component. It's sort of a mix of the two. |
| 33 | + </p> |
| 34 | + |
| 35 | + <h2>Usage</h2> |
| 36 | + <pre><code>new RangePicker(element[, options, locale, template]);</code></pre> |
| 37 | + <p>For insight on the options available or what attributes may be supported |
| 38 | + by the locale and template objects, please take a look at the <a href="https://github.com/etrepat/simple-range-picker/blob/master/README.md" title="README">README</a> |
| 39 | + on the <a href="https://github.com/etrepat/simple-range-picker" title="github project page">github project page</a>.</p> |
| 40 | + |
| 41 | + <h2>Documentation</h2> |
| 42 | + <p><a href="https://github.com/etrepat/simple-range-picker/blob/master/README.md">README</a></p> |
| 43 | + |
| 44 | + <h2>Example</h2> |
| 45 | + <p>Please, picka a date range...</p> |
| 46 | + <div id="rangepicker"></div> |
| 47 | + <p>Generated from the code below (check source code for more detail):</p> |
| 48 | + <pre><code> |
| 49 | + <script type="text/javascript" charset="utf-8"> |
| 50 | + //<![CDATA[ |
| 51 | + document.observe(ɽom:loaded', function() { |
| 52 | + new RangePicker('rangepicker', { |
| 53 | + months: 3, |
| 54 | + currentMonthPosition: 'last' |
| 55 | + }); |
| 56 | + }); |
| 57 | + //]]> |
| 58 | + </script> |
| 59 | + </code></pre> |
| 60 | + |
| 61 | + <h2>Download</h2> |
| 62 | + <p> |
| 63 | + You can download this project in either |
| 64 | + <a href="https://github.com/etrepat/simple-range-picker/zipball/master">zip</a> or |
| 65 | + <a href="https://github.com/etrepat/simple-range-picker/tarball/master">tar</a> formats. |
| 66 | + </p> |
| 67 | + <p>You can also clone the project with <a href="http://git-scm.com">Git</a> |
| 68 | + by running: |
| 69 | + <pre>$ git clone git://github.com/eventmachine/eventmachine</pre> |
| 70 | + </p> |
| 71 | + |
| 72 | + <h2>Dependencies</h2> |
| 73 | + |
| 74 | + <h2>Localization</h2> |
| 75 | + <p>Localization with <em>SimpleRangePicker</em> can be accomplished by modifying |
| 76 | + the strings present in <code>RangePickerOptions.Locale</code> object.</p> |
| 77 | + <p>Also, as this project uses DateJS for date manipulation, dropping a localized |
| 78 | + culture info file will do the job for date formats, day names, etc.</p> |
| 79 | + |
| 80 | + <div class="footer"> |
| 81 | + get the source code on GitHub: |
| 82 | + <a href="https://github.com/etrepat/simple-range-picker">etrepat/simple-range-picker</a> |
| 83 | + </div> |
| 84 | + </div> |
| 85 | + <script src="../lib/prototype.js" type="text/javascript" charset="utf-8"></script> |
| 86 | + <script src="../lib/effects.js" type="text/javascript" charset="utf-8"></script> |
| 87 | + <!-- |
| 88 | + Also, take a look at RangePickerOptions.Locale object. All captions used |
| 89 | + by the component can be translated there, overriden on a separate file or passed |
| 90 | + as a parameter to RangePicker constructor. |
| 91 | + --> |
| 92 | + <script src="../lib/culture-en-US.js" type="text/javascript" charset="utf-8"></script> |
| 93 | + <script src="../lib/date.js" type="text/javascript" charset="utf-8"></script> |
| 94 | + <script src="../src/rangepicker.js" type="text/javascript" charset="utf-8"></script> |
| 95 | + <script type="text/javascript" charset="utf-8"> |
| 96 | + //<![CDATA[ |
| 97 | + document.observe('dom:loaded', function() { |
| 98 | + new RangePicker('rangepicker', { |
| 99 | + months: 3, |
| 100 | + currentMonthPosition: 'last' |
| 101 | + }); |
| 102 | + }); |
| 103 | + //]]> |
| 104 | + </script> |
| 105 | +</body> |
| 106 | +</html> |
0 commit comments