Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LQDN Adminsys
generateur-slogans
Commits
03b21c2a
Verified
Commit
03b21c2a
authored
Sep 26, 2017
by
Thibaut Broggi
Browse files
Update message if no signature provided
parent
2dfdfe37
Changes
1
Hide whitespace changes
Inline
Side-by-side
canvas.js
View file @
03b21c2a
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment