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
ad10e108
Verified
Commit
ad10e108
authored
Oct 03, 2017
by
Thibaut Broggi
Browse files
Fix random signature
parent
d7e39286
Pipeline
#1309
passed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
canvas.js
View file @
ad10e108
...
...
@@ -138,7 +138,7 @@ document.getElementById('randomize').onclick = function(e) {
randomElement
(
'
input[name="font"]
'
).
checked
=
true
;
randomElement
(
'
input[name="icon"]
'
).
checked
=
true
;
document
.
getElementById
(
'
step2value
'
).
value
=
document
.
getElementById
(
'
step2value
'
).
innerText
=
sampleTexts
[
Math
.
trunc
(
Math
.
random
()
*
sampleTexts
.
length
)];
if
(
document
.
getElementById
(
'
signature
'
).
value
.
match
(
/
\t
$/
))
if
(
document
.
getElementById
(
'
signature
'
).
value
.
match
(
/
(
\t
$
|^$
)
/
))
document
.
getElementById
(
'
signature
'
).
value
=
sampleSignatures
[
Math
.
trunc
(
Math
.
random
()
*
sampleSignatures
.
length
)];
draw
();
}
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