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
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
Pipeline
#19373
failed with stages
in 1 minute and 16 seconds
Changes
2
Pipelines
1
Show 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 @@
z-index
:
2
;
}
.backdrop.is-active
{
display
:
block
;
}
.page-versions
h2
.title
{
color
:
var
(
--nav-heading-font-color
);
font-size
:
inherit
;
...
...
src/js/04-page-versions.js
View file @
a7e7f089
...
...
@@ -9,15 +9,17 @@
toggle
.
addEventListener
(
'click'
,
function
(
e
)
{
selector
.
classList
.
toggle
(
'is-active'
)
backdrop
.
style
.
display
=
'block'
backdrop
.
classList
.
toggle
(
'is-active'
)
e
.
stopPropagation
()
// trap event
})
backdrop
.
addEventListener
(
'click'
,
function
()
{
selector
.
classList
.
remove
(
'is-active'
)
backdrop
.
classList
.
remove
(
'is-active'
)
})
document
.
documentElement
.
addEventListener
(
'click'
,
function
()
{
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