Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/graste/datetime-local-picker
AMD compatible javascript datetime picker that no longer supports HTML5 input types datetime-local and date
https://github.com/graste/datetime-local-picker
datepicker datetime-picker jquery moment requirejs
Last synced: 9 days ago
JSON representation
AMD compatible javascript datetime picker that no longer supports HTML5 input types datetime-local and date
- Host: GitHub
- URL: https://github.com/graste/datetime-local-picker
- Owner: graste
- License: mit
- Created: 2015-01-06T13:17:11.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-12-14T23:24:48.000Z (almost 8 years ago)
- Last Synced: 2024-11-04T19:05:26.652Z (11 days ago)
- Topics: datepicker, datetime-picker, jquery, moment, requirejs
- Language: JavaScript
- Homepage:
- Size: 98.6 KB
- Stars: 4
- Watchers: 4
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# datetime-local-picker
Early goal was to use the HTML5 input types `dateime-local`, `date` and `time` for environments with disabled javascript (or failed loading due to network issues etc.). On that basis the usage of the native input types on e.g. mobile devices could be done with a fallback to custom styled calendars or list on bigger viewports or devices where native HTML5 input type support is bad. Turns out, that native HTML5 input types are badly supported (even on mobile) as they e.g. set random seconds when setting a time or they disallow users to set seconds (and milliseconds) at all. Additionally they tend to have a lack of GUI support for seconds and milliseconds even on desktop browsers. That's why this datepicker is suggested to be used on a plain ```input[type="text"]```. :\
## Dependencies
At the moment:
- requirejs
- momentjs
- jquery
- lodash (plus lodash-template-loader plugin)## Usage
See [index.html](index.html) for the moment. Available settings can be seen in the ``default_settings`` on top of the [src/DatetimeLocalPicker.js](src/DatetimeLocalPicker.js) file. The public API can be found there too (or use the browser's console on the index page with ``foo.``).
## License
MIT - see [LICENSE file](LICENSE).