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
Michael Iseard
Kudos-Website
Commits
7bae8fdc
Commit
7bae8fdc
authored
Oct 05, 2020
by
Michael Iseard
Browse files
Add 'open' class to header when mobile menu open
parent
48211114
Changes
1
Hide whitespace changes
Inline
Side-by-side
resources/assets/scripts/routes/common.js
View file @
7bae8fdc
export
default
{
init
()
{
let
$header
=
$
(
'
header.banner
'
);
let
$navbar
=
$
(
'
.navbar-collapse
'
);
$navbar
.
on
(
'
show.bs.collapse
'
,
function
()
{
$header
.
addClass
(
'
open
'
);
});
$navbar
.
on
(
'
hide.bs.collapse
'
,
function
()
{
$header
.
removeClass
(
'
open
'
);
});
},
finalize
()
{
...
...
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