Skip to content

epavanello/input-time-polyfill

 
 

Repository files navigation

input-time-polyfill

Polyfill for time input. Use this for IE and Safari support or for standardize UI behaviour.

Support dynamically created inputs, so can be used in single page applications.

Forked from date-input-polyfill. Continuing and fixed as a separate project.

Demo available here: https://codepen.io/epavanello/pen/RwoqVvx

Install

npm install --save input-time-polyfill

Add to your project:

  • Webpack/Browserify: require('input-time-polyfill');

    or alongside Babel: import 'input-time-polyfill';

  • Script Tag: Copy input-time-polyfill.dist.js from node_modules and include it anywhere in your HTML.

  • This package also supports AMD.

Features

  • Keyboard Shortcuts: Esc will hide the timepicker. Up/Down will increment/decrement the hours/minutes by one.

Local Development

Run npm start

Build

Run npm run build

About

Automatically adds timepickers to input[type=time] on IE and OS X Safari.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 98.1%
  • SCSS 1.4%
  • HTML 0.5%