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
cf7f65b4
Verified
Commit
cf7f65b4
authored
Oct 16, 2017
by
Thibaut Broggi
Browse files
Fix selected tab highlight on next/prev button click
parent
4ded799f
Pipeline
#1419
passed with stage
in 32 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
static/canvas.js
View file @
cf7f65b4
...
...
@@ -118,7 +118,7 @@ for (let i = 0; i < navElems.length; ++i) {
}
}
let
navButtons
=
document
.
querySelectorAll
(
'
.
pre
vButton
, .nextButton
'
);
let
navButtons
=
document
.
querySelectorAll
(
'
.
na
vButton
s > a[href^="#"]
'
);
for
(
let
i
=
0
;
i
<
navButtons
.
length
;
++
i
)
{
navButtons
[
i
].
onclick
=
function
(
e
)
{
document
.
querySelector
(
'
nav > a[href="
'
+
e
.
target
.
attributes
.
href
.
value
+
'
"]
'
).
click
();
...
...
@@ -153,7 +153,7 @@ window.addEventListener('load', function() {
}
// Add event listeners to inputs
let
bgColorElem
s
=
document
.
querySelectorAll
(
'
.colorpicker input[type="radio"], #step3 input[type="radio"], #step4 input[type="radio"]
'
);
let
input
s
=
document
.
querySelectorAll
(
'
.colorpicker input[type="radio"], #step3 input[type="radio"], #step4 input[type="radio"]
'
);
for
(
let
i
=
0
;
i
<
bgColorElems
.
length
;
++
i
)
{
bgColorElems
[
i
].
onchange
=
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