Skip to content
JavaScript
Find file
Pull request Compare This branch is 3 commits ahead, 7 commits behind meta100:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
images
javascripts
.gitignore
README.textile
index.html

README.textile

mColorPicker

Version: 1.0 r35

Copyright © 2010 Meta100 LLC.
http://www.meta100.com/

Licensed under the MIT license
http://www.opensource.org/licenses/mit-license.php

Usage

$('input.foo').mColorPicker({
  hex: true,
  imageFolder: '/where/should/go'
})

Options:

  • imageFolder – Change to move image location. Defaults to
    images/
  • swatches – Initial colors in the swatch, must an array of 10 colors.
  • hex – true or false. Defaults to
    false
    .

You can call these before applying it to an object for other options

  • $.fn.mColorPicker.init.enhancedSwatches – Turn of saving and loading of swatch to cookies.
  • $.fn.mColorPicker.init.allowTransparency – Turn off transperancy as a color option.
  • $.fn.mColorPicker.init.showLogo – Turn on/off the meta100 logo (You don’t really want to turn it off, do you?).

What the fork?

I forked this to change the following:

  • remove auto application of color picker. It caused a problem when trying to change the imageFolder – the CSS images were still looking in the default folder.
  • added the hex option
  • doesn’t blow up if there’s no trailing slash in the imageFolder option
Something went wrong with that request. Please try again.