Verified Commit 03b21c2a authored by Thibaut Broggi's avatar Thibaut Broggi
Browse files

Update message if no signature provided

parent 2dfdfe37
......@@ -57,14 +57,21 @@ let draw = function() {
ctx.font = '16px FiraSans';
ctx.fillStyle = '#497ed5';
let offset = height * 0.05;
ctx.fillText('Faites comme ', offset, height * 0.9);
offset += ctx.measureText('Faites comme ').width;
ctx.font = 'bold 16px FiraSans';
ctx.fillText(signature, offset, height * 0.9);
offset += ctx.measureText(signature).width;
ctx.font = '16px FiraSans';
ctx.fillText(', soutenez ', offset, height * 0.9);
offset += ctx.measureText(', soutenez ').width;
if (signature) {
ctx.fillText('Faites comme ', offset, height * 0.9);
offset += ctx.measureText('Faites comme ').width;
ctx.font = 'bold 16px FiraSans';
ctx.fillText(signature, offset, height * 0.9);
offset += ctx.measureText(signature).width;
ctx.font = '16px FiraSans';
ctx.fillText(', s', offset, height * 0.9);
offset += ctx.measureText(', s').width;
} else {
ctx.fillText('S', offset, height * 0.9);
offset+= ctx.measureText('S').width;
}
ctx.fillText('outenez ', offset, height * 0.9);
offset += ctx.measureText('outenez ').width;
ctx.font = 'bold 16px FiraSans';
ctx.fillText('La Quadrature du Net !', offset, height * 0.9);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment