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
825cd415
Commit
825cd415
authored
5 months ago
by
박민석
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test download
parent
0ada9309
Pipeline
#21238
passed with stages
in 3 minutes and 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
07-header.js
src/js/07-header.js
+3
-0
No files found.
src/js/07-header.js
View file @
825cd415
...
...
@@ -3,6 +3,8 @@
var
download
=
document
.
getElementById
(
'download'
)
console
.
log
(
download
)
document
.
addEventListener
(
'scroll'
,
function
()
{
var
navbar
=
document
.
querySelector
(
'.navbar'
)
...
...
@@ -14,6 +16,7 @@
})
download
.
addEventListener
(
'click'
,
function
()
{
console
.
log
(
'download'
)
var
pathname
=
window
.
location
.
pathname
var
path
=
pathname
.
split
(
'/'
)
var
isInternal
=
path
[
4
].
includes
(
'-s'
)
...
...
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