justinvt/justinvt.github.com
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
TODO: Write some actual documentation.
See example.html for general guidance on implementation.
To use the plugin, include the given javascript and css in the document HEAD, and call the colorPicker method on whichever element you'd like to attach the colorpicker. This should be all you need to get started:
<link rel="stylesheet" href="farbtastic.css">
<script type='text/javascript' src="jquery.js"></script>
<script type='text/javascript' src="farbtastic.js"></script>
<script type='text/javascript' src="palette.js"></script>
<script type='text/javascript'>
$(document).ready(function(){
$("#where-I-want-my-colorpicker").colorPicker()
})
</script>