input-color-polyfill
v0.0.2
Published
Polyfill for input type color
Downloads
9
Readme
= Color polyfill
This is a polyfill for implementing the HTML5 element in browsers that do not currently support it.
== Usage
Using it is easy — simply include the +color-polyfill.js+ file in the HEAD of the HTML page. You can then use elements normally.
If Modernizr detects that the browser doesn't support , the script will replace these elements with a JavaScript-powered color picker dialog.
A default CSS file is provided. You may edit this file to style the buttons and dialog box to make them look the way you want.
If Modernizr detects support for CSS transitions, you will be able to animate the opening and closing of the dialog box by writing a CSS transition in the CSS file. Otherwise, a jQuery animation is used.
== Dependencies
This script requires jQuery[http://jquery.com/], jQuery UI[http://jqueryui.com/], and Modernizr[http://www.modernizr.com/].