Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SWLab UI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
SWD
SWLab UI
Commits
fcad5113
Commit
fcad5113
authored
Oct 22, 2024
by
minseok.park
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update nav
parent
bad17f5c
Pipeline
#21631
passed with stages
in 3 minutes and 52 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
11 deletions
+0
-11
01-nav.js
src/js/01-nav.js
+0
-11
No files found.
src/js/01-nav.js
View file @
fcad5113
...
...
@@ -39,17 +39,6 @@
}
})
find
(
menuPanel
,
'.nav-link'
).
forEach
(
function
(
link
)
{
link
.
addEventListener
(
'click'
,
function
(
e
)
{
var
li
=
this
.
parentElement
if
(
!
li
.
classList
.
contains
(
'is-active'
))
{
e
.
preventDefault
()
// 기본 링크 이동을 막음
toggleActive
.
call
(
li
)
// 펼쳐짐/접힘 동작 수행
window
.
location
=
this
.
href
// 링크 이동을 명시적으로 호출
}
})
})
find
(
menuPanel
,
'.nav-link'
).
forEach
(
function
(
link
)
{
link
.
addEventListener
(
'click'
,
function
(
e
)
{
var
li
=
this
.
parentElement
...
...
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