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
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hyeryung
SWLab UI
Commits
a7e7f089
Commit
a7e7f089
authored
Jun 14, 2024
by
minseok.park
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update backdrop click event
parent
74ea2f01
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
page-versions.css
src/css/page-versions.css
+4
-0
04-page-versions.js
src/js/04-page-versions.js
+3
-1
No files found.
src/css/page-versions.css
View file @
a7e7f089
...
@@ -26,6 +26,10 @@
...
@@ -26,6 +26,10 @@
z-index
:
2
;
z-index
:
2
;
}
}
.backdrop.is-active
{
display
:
block
;
}
.page-versions
h2
.title
{
.page-versions
h2
.title
{
color
:
var
(
--nav-heading-font-color
);
color
:
var
(
--nav-heading-font-color
);
font-size
:
inherit
;
font-size
:
inherit
;
...
...
src/js/04-page-versions.js
View file @
a7e7f089
...
@@ -9,15 +9,17 @@
...
@@ -9,15 +9,17 @@
toggle
.
addEventListener
(
'click'
,
function
(
e
)
{
toggle
.
addEventListener
(
'click'
,
function
(
e
)
{
selector
.
classList
.
toggle
(
'is-active'
)
selector
.
classList
.
toggle
(
'is-active'
)
backdrop
.
style
.
display
=
'block'
backdrop
.
classList
.
toggle
(
'is-active'
)
e
.
stopPropagation
()
// trap event
e
.
stopPropagation
()
// trap event
})
})
backdrop
.
addEventListener
(
'click'
,
function
()
{
backdrop
.
addEventListener
(
'click'
,
function
()
{
selector
.
classList
.
remove
(
'is-active'
)
selector
.
classList
.
remove
(
'is-active'
)
backdrop
.
classList
.
remove
(
'is-active'
)
})
})
document
.
documentElement
.
addEventListener
(
'click'
,
function
()
{
document
.
documentElement
.
addEventListener
(
'click'
,
function
()
{
selector
.
classList
.
remove
(
'is-active'
)
selector
.
classList
.
remove
(
'is-active'
)
backdrop
.
classList
.
remove
(
'is-active'
)
})
})
})()
})()
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