Fix #10 - Allow to choose card color
This commit is contained in:
parent
ae4db29b8c
commit
33d96d90ea
2 changed files with 15 additions and 2 deletions
|
@ -394,6 +394,11 @@ function createCard(id, text, x, y, rot, colour) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function randomCardColour() {
|
function randomCardColour() {
|
||||||
|
var choosed = $('#choose-card-color').val();
|
||||||
|
if (choosed !== 'random') {
|
||||||
|
return choosed;
|
||||||
|
}
|
||||||
|
|
||||||
var colours = ['yellow', 'green', 'blue', 'white'];
|
var colours = ['yellow', 'green', 'blue', 'white'];
|
||||||
|
|
||||||
var i = Math.floor(Math.random() * colours.length);
|
var i = Math.floor(Math.random() * colours.length);
|
||||||
|
|
|
@ -22,8 +22,16 @@ block body
|
||||||
|
|
||||||
|
|
||||||
div.buttons
|
div.buttons
|
||||||
i#create-card.fa.fa-plus-circle.fa-2x.bottom-icon
|
i#create-card.fa.fa-plus-circle.fa-2x.bottom-icon(title='Ajouter une note')
|
||||||
i#smallify.fa.fa-expand.fa-2x.bottom-icon
|
i#smallify.fa.fa-expand.fa-2x.bottom-icon(title='Réduire la taille des notes')
|
||||||
|
div.form-group
|
||||||
|
label.control-label(for='choose-card-color') Choisir la couleur de la nouvelle note
|
||||||
|
select#choose-card-color.form-control
|
||||||
|
option(value='random') Couleur au hasard
|
||||||
|
option(value='yellow') Jaune
|
||||||
|
option(value='green') Vert
|
||||||
|
option(value='blue') Bleu
|
||||||
|
option(value='white') Blanc
|
||||||
|
|
||||||
|
|
||||||
div.stickers
|
div.stickers
|
||||||
|
|
Loading…
Add table
Reference in a new issue