GithubHelp home page GithubHelp logo

deepeshkumar322 / jquery-wheelcolorpicker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fujaru/jquery-wheelcolorpicker

0.0 2.0 0.0 388 KB

A jQuery plugin to add color picker functionality to HTML form inputs in round color wheel style.

Home Page: http://www.jar2.net/projects/jquery-wheelcolorpicker

License: MIT License

CSS 3.99% PHP 5.16% HTML 11.54% JavaScript 79.31%

jquery-wheelcolorpicker's Introduction

jQuery Wheel Color Picker Plugin

The Wheel Color Picker plugin adds color picker functionality to HTML form inputs in round color wheel style. The Wheel Color Picker can be displayed as a popup dialog as users focus the input, or embedded inline. It currently supports these HTML elements:

  • input (works on buttons too!)
  • textarea

Note: It should also works on other HTML elements which support jQuery .val() function.

Features

SUPPORTED COLORS

This plugin supports both RGB and HSV modes with additional Alpha channel.

MULTIPLE FORMAT

There are numbers of formats which the color picker can display its value:

  • hex format, e.g. ffffff
  • CSS-style hex format, e.g. #ffffff
  • rgb format, e.g. rgb(255, 255, 255)
  • hsv format, e.g. hsv(1.0, 1.0, 1.0)

INDIVIDUAL SLIDERS

The color picker can be set to display slider for each individual color channel.

THEMING CAPABILITY

The color picker appearance can be customized using CSS. This package already contains two CSS variants which can be used as starting point to make your own theme.

See Features Page for the complete list.

Usage

First, include these javascript and CSS files on the HTML head section:

<script type="text/javascript" src="jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="jquery.wheelcolorpicker.js"></script>
<link type="text/css" rel="stylesheet" href="css/wheelcolorpicker.css" />

HTML WAY

Since version 2.3, an easier way to initialize the color picker is by simply adding data-wheelcolorpicker attribute to an input element.

<input type="text" data-wheelcolorpicker />

And you're done!

JAVASCRIPT WAY

Or you can also initialize the color picker to an element by calling:

$(element).wheelColorPicker( options );

Example

<input type="text" class="colorpicker" />

<script type="text/javascript">
  $(function() { $('.colorpicker').wheelColorPicker(); });
</script>

Demo

See example.html for more usage examples or try it online at our demonstration page.

Documentation

See Documentation Page for a complete documentation.

License

jQuery Wheel Color Picker plugin is released under MIT License.

What's New in 2.5

  • Added slider snap option.
  • Added support for Firefox 3.6.

Backward Compatibility

Version 1.x

Options and methods marked as deprecated in version 2.x are still available which makes this backward compatible to 1.x. However, please refrain on using any deprecated options and methods since they are planned to be removed in future release. CSS is not backward compatible. Switching back to base theme is recommended. For more information, see Migration page.


Click here to lend your support to: jQuery Wheel Color Picker Plugin and make a donation at pledgie.com !

jquery-wheelcolorpicker's People

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.