Skip to content
GitLab
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
90d36425
Verified
Commit
90d36425
authored
Oct 16, 2017
by
Thibaut Broggi
Browse files
Fix event listeners assignation
parent
cf7f65b4
Pipeline
#1420
passed with stage
in 33 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
static/canvas.js
View file @
90d36425
...
...
@@ -154,8 +154,8 @@ window.addEventListener('load', function() {
// Add event listeners to inputs
let
inputs
=
document
.
querySelectorAll
(
'
.colorpicker input[type="radio"], #step3 input[type="radio"], #step4 input[type="radio"]
'
);
for
(
let
i
=
0
;
i
<
bgColorElem
s
.
length
;
++
i
)
{
bgColorElem
s
[
i
].
onchange
=
draw
;
for
(
let
i
=
0
;
i
<
input
s
.
length
;
++
i
)
{
input
s
[
i
].
onchange
=
draw
;
}
document
.
getElementById
(
'
step2value
'
).
oninput
=
draw
;
document
.
getElementById
(
'
signature
'
).
oninput
=
draw
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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