A simple color picker for mobiles and small screens.
Clone this repository or download the latest build.
Include jQuery library and google maps API places library:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
Include mcpicker.js after the jQuery library:
<script src="/path/to/mcpicker.js"></script>
$(function() {
$("#mcp").mcpicker(); // 'mcp' is the id of the field to be used with color picker.
});
callback : function
A callback function to be called after a color is selected.
Ex:
$("#mcp").mcpicker({
callback: function() {
console.log('call back executed');
}
});
fullscreen: false
If set to true, picker will be displayed in full screen.
http://nadeeth.github.io/mcpicker
Please track issues, bugs, and feature requests in this tracker.