1
<script type="text/javascript">
5
renderAt: '#containerDemo',
7
title: 'Colorpicker Demos',
12
title: 'Inline colorpicker',
13
desc: 'With few lines of code you could build a colorpicker. You can try more options on the fly!',
14
html: '<div id="colorpicker" />',
15
destroy: '$("#colorpicker").colorpicker("destroy");',
17
{ desc: 'Make a colorpicker', source: '$("#colorpicker").colorpicker({flat:true});' }
22
title: 'Triggered colorpicker',
23
desc: 'With few lines of code you could build a colorpicker. You can try more options on the fly!',
24
html: '<input id="colorpicker2" /><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>',
25
destroy: '$("#colorpicker2").colorpicker("destroy");',
27
{ desc: 'Make a colorpicker', source: '$("#colorpicker2").colorpicker( {submit: function(e,ui) { $("#colorpicker2").val(ui.hex);} });' },
28
{ desc: 'Fade in/out a colorpicker', source: '$("#colorpicker2").colorpicker( {show: function (e,ui) { $(this).data("colorpicker").picker.fadeIn(500);return false; }, hide: function (e,ui) { $(this).data("colorpicker").picker.fadeOut(500);return false; }, change: function(e,ui) { $("#colorpicker2").val(ui.hex); } });' }
b'\\ No newline at end of file'