Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Simple & user-friendly color picker for HTML forms

branch: master

This branch is 0 commits ahead and 0 commits behind master

Merge pull request #1 from gamma-dj/master

quick fix to demo
latest commit 9c5d4789c4
Johannes Jörg Schmidt authored June 12, 2012
Octocat-spinner-32 README.md makes jscolor a polyfill December 20, 2011
Octocat-spinner-32 arrow.gif Init November 02, 2010
Octocat-spinner-32 cross.gif Init November 02, 2010
Octocat-spinner-32 demo.html Update master June 12, 2012
Octocat-spinner-32 hs.png Init November 02, 2010
Octocat-spinner-32 hv.png Init November 02, 2010
Octocat-spinner-32 jscolor.js makes jscolor a polyfill December 20, 2011
Octocat-spinner-32 jscolor.min.js makes jscolor a polyfill December 20, 2011
Octocat-spinner-32 makefile makes jscolor a polyfill December 20, 2011
Octocat-spinner-32 modernizr.custom.js makes jscolor a polyfill December 20, 2011
Octocat-spinner-32 modernizr.html makes jscolor a polyfill December 20, 2011
README.md

Fork of JSColor (written by Jan Odvárko)

It's a polyfill!

https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-Browser-Polyfills

My fork changes the way JSColor integrates. It uses

<input type=color>

instead of

<input class=color>

Also, this fork removes support for configuration via class name.

Compression

I include a makefile to compress the script down to 15kB using uglifyjs (https://github.com/mishoo/UglifyJS). To use the task, install

  • make
  • node
  • uglify-js (via npm install uglify-js)

Compress the file with

make

and you're done - a jscolor.min.js has been created.

Use with Modernizr

This fork of jscolor can be used in combination with modernizr (http://www.modernizr.com/) to dynamically load the script if the browser does not support input type color.

Please look at modernizr.html for information on usage.

License

GNU LESSER GENERAL PUBLIC LICENSE: http://www.gnu.org/copyleft/lesser.html

Author: Jan Odvarko, http://odvarko.cz

http://jscolor.com

(c) Johannes J. Schmidt, TF, 2011

Something went wrong with that request. Please try again.