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
5cd36372
Commit
5cd36372
authored
6 months ago
by
minseok.park
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rollback
parent
7aa2d5df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
07-header.js
src/js/07-header.js
+3
-3
No files found.
src/js/07-header.js
View file @
5cd36372
...
...
@@ -16,11 +16,11 @@
download
.
addEventListener
(
'click'
,
function
()
{
var
pathname
=
window
.
location
.
pathname
var
path
=
pathname
.
split
(
'/'
)
var
filename
=
path
[
4
]
?
path
[
4
]
===
'swlab-docs'
?
'docs'
:
`docs-
${
path
[
4
]}
`
:
''
var
directory
=
path
[
4
]
&&
path
[
5
]
?
path
[
4
]
===
'swlab-docs'
?
path
[
4
]
:
path
[
5
]
:
''
var
filename
=
path
[
3
]
?
path
[
3
]
===
'swlab-docs'
?
'docs'
:
`docs-
${
path
[
3
]}
`
:
''
var
directory
=
path
[
3
]
&&
path
[
4
]
?
path
[
3
]
===
'swlab-docs'
?
path
[
3
]
:
path
[
4
]
:
''
var
link
=
document
.
createElement
(
'a'
)
link
.
href
=
`https://swlab.bwg.co.kr/web/dms/
api/
download-file?filename=
${
filename
}
.zip&directory=
${
directory
}
`
link
.
href
=
`https://swlab.bwg.co.kr/web/dms/download-file?filename=
${
filename
}
.zip&directory=
${
directory
}
`
link
.
click
()
if
(
link
.
parentNode
)
{
...
...
This diff is collapsed.
Click to expand it.
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