npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

jquery-wheelcolorpicker

v3.0.9

Published

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.

Downloads

1,050

Readme

Wheel Color Picker Plugin for jQuery

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 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.

RESPONSIVE MOBILE LAYOUT

The color picker can automatically adapt when opened on mobile browsers with limited screen width.

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-2.0.3.min.js"></script>
<script type="text/javascript" src="jquery.wheelcolorpicker.js"></script>
<link type="text/css" rel="stylesheet" href="css/wheelcolorpicker.css" />

HTML WAY

Simply add 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 demo/index.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 3.0

  • Code refactor
  • Support for responsive/mobile websites
  • Options for sliders arrangement
  • Programmatically resizeable color picker
  • External images no longer required

Read more about what's new at Documentation Page

Backward Compatibility

Version 2

Websites built using version 2 of the wheel color picker plugin can be upgraded to version 3 with no changes necessary.

However, CSS customizations made from version 2 may not be compatible with version 3 due to changes on HTML structure.

Please see Documentation Page for migrating instructions from version 2 to version 3.

Version 1.x

alpha option and color method marked as deprecated in version 2.x are now obsolete. CSS is not backward compatible. Switching back to base theme is recommended.