Skip to content

dxw/date-polyfill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

= 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.

About

A polyfill for input[type="date"]

Topics

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •