https://github.com/dxw/date-polyfill
A polyfill for input[type="date"]
https://github.com/dxw/date-polyfill
govpress javascript
Last synced: 3 months ago
JSON representation
A polyfill for input[type="date"]
- Host: GitHub
- URL: https://github.com/dxw/date-polyfill
- Owner: dxw
- Created: 2016-07-05T15:09:42.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2022-11-09T00:51:14.000Z (over 2 years ago)
- Last Synced: 2025-03-22T05:33:30.410Z (4 months ago)
- Topics: govpress, javascript
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 12
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
= date-polyfill
A very simple polyfill for input[type="date"] using jQuery UI
== Requirements
- Modernizr with inputtypes
- jQuery
- jQuery UI with datepicker== Installation
Run this:
yarn add git+https://github.com/dxw/date-polyfill.git
Add this to your Browserify-complied JS:
require('date-polyfill')
Add this to your SCSS:
@import "../../node_modules/pikaday/css/pikaday";
@import "../../node_modules/pikaday/css/site";== CSS
The polyfill copies the classes from the original element so any rules targetting the input elements should be fine.
== Browser support
Any supported by Modernizr/jQuery/jQuery UI.