It's a jQuery plugin which provide a color picker for your web based applications.
This plugin may be used alongside Twitter Bootstrap.
You can see it working here.
-
Import css and javascript to your HTML file;
-
Call the function
wealcolorpicker
;
<div id="grid"></div>
<script>
$('#grid').wealcolorpicker();
</script>
If you wanna change the default values:
<script>
$('#grid').wealcolorpicker({
between: 3,
variant: 7,
expurge: 2
});
</script>
<input class="weal-colorpicker"/>
<script>
$('.weal-colorpicker').wealcolorpicker({
between: 3,
variant: 7,
expurge: 2,
dropdown: true
});
</script>
$('.weal-colorpicker').on('colorSelected', function (event) {
$('body').css('background-color', event.color);
console.log(event.color);
});
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request