Skip to content

Latest commit

History

46 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

mColorPicker

jQuery color picker plugin.

Installing

After jQuery is loaded.

<script type="text/javascript" src="javascripts/mColorPicker.js"></script>

Then set any inits listed below.

Usage

To turn of automatic operation and run manually set:

$.fn.mColorPicker.init.replace = false

To use manually call like any other jQuery plugin

$('input.foo').mColorPicker({options})

Options

OptionDefaultNotes
imageFolder'images/'Change to move image location
swatches["#ffffff", "#ffff00", "#00ff00", "#00ffff", "#0000ff", "#ff00ff", "#ff0000", "#4c2b11", "#3b3b3b", "#000000"]Initial colors in the swatch, must be an array of 10 colors

Inits

InitDefaultNotes
replace'[type=color]'Selector to use to decide which DOM objects to automatically turn into to a color picker
enhancedSwatchestrueSet to false to turn off saving and loading of swatch to cookies
allowTransparencytrueSet to false to turn off transperancy as a color option
showLogotrueSet to false to turn off the meta100 logo

Authors

  • Will Shostak - Initial work - GitLab

About

jQuery color picker plugin

Resources

Stars

28 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages