Kubrick 0.1
Kubrick is a MooTools plug-in that can add one or more color picker widgets into a page through JavaScript. Each widget is then linked to an existing element (e.g. a text field) and will update the element's value when a color is selected.
Details
- Author
- Chi Wai Lau
- Current version
- 0.1
- GitHub
- clau/Kubrick
- Downloads
- 2226
- Category
- Interface
- Tags
- Report
- GitHub Issues
How to use
...
<head>
<title>...</title>
<script type="text/javascript" src="path/to/mootools-1.2.4-core.js"></script>
<script type="text/javascript" src="path/to/Kubrick.js"></script>
<script>
window.addEvent('domready', function() {
var k = new Kubrick('colorInput', {
onColorChange: function(new_color) {
console.log(new_color)
}
});
});
</script>
<link rel="stylesheet" href="path/to/Kubrick.css" type="text/css" />
...
</head>
<body>
...
<input type="text" id="colorInput" />
...
</body>
...
Demos
- You can see a simple online demo in this blog post
Support
Please contact me (clau@tabqwerty.com) if you have any suggestions or comments.
Discuss
A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.
Found a bug in this plugin? Please report it this repository's Github Issues.
blog comments powered by Disqus