Colorpicker to choose the background color in present mode

pull/1/head
Yann Flory 8 years ago
parent 5300bc363c
commit 81fce1237f

File diff suppressed because it is too large Load Diff

@ -15,6 +15,7 @@ define([
'/slide/slide.js',
'/bower_components/file-saver/FileSaver.min.js',
'/bower_components/jquery/dist/jquery.min.js',
'/common/jscolor.js',
'/customize/pad.js'
], function (Messages, Crypto, Realtime, TextPatcher, Toolbar, JSONSortify, JsonOT, Cryptpad, Modes, Themes, Visible, Notify, Slide) {
var $ = window.jQuery;
@ -429,7 +430,26 @@ define([
});
};
var configureColors = function () {
/*var $background = $('<input>', {
id: "cryptpad-bg-color",
value: "#5367ce"
}).colorpicker();*/
console.log(jscolor);
var $background = $('<input>', {
value: 'BACKGROUND',
});
$rightside[0].appendChild($background[0]);
var picker = new jscolor($background[0]);
console.log($background);
$background.addClass('jscolor-active');
// $rightside[0].appendChild($background[0]);
//console.log($pad.contents().find('#cryptpad-bg-color'));
};
configureTheme();
configureColors();
if (presentMode) {
$('#top-bar').hide();

Loading…
Cancel
Save