Test colorpicker

pull/1/head
yflory 8 years ago
parent 81fce1237f
commit d7e170c797

@ -5,6 +5,7 @@ define([
'/common/cryptpad-common.js',
'/bower_components/lil-uri/uri.min.js',
'/bower_components/jquery/dist/jquery.min.js',
'/common/jscolor.js',
], function (Messages, DecorateToolbar, Config, Cryptpad, LilUri) {
var $ = window.$;

@ -438,11 +438,11 @@ define([
console.log(jscolor);
var $background = $('<input>', {
value: 'BACKGROUND',
style: "position:absolute; top:100px; left: 50px; z-index:1000"
});
$rightside[0].appendChild($background[0]);
var picker = new jscolor($background[0]);
$('body').append($background);
console.log($background);
$background.addClass('jscolor-active');
// $rightside[0].appendChild($background[0]);
//console.log($pad.contents().find('#cryptpad-bg-color'));

Loading…
Cancel
Save