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
7583497b
Commit
7583497b
authored
Aug 27, 2024
by
minseok.park
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix lint
parent
9107f981
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
09-session.js
src/js/09-session.js
+6
-6
No files found.
src/js/09-session.js
View file @
7583497b
...
...
@@ -3,10 +3,10 @@
const
logo
=
document
.
getElementById
(
'logo'
)
function
getCookie
(
name
)
{
le
t
cookies
=
document
.
cookie
.
split
(
';'
)
function
getCookie
(
name
)
{
cons
t
cookies
=
document
.
cookie
.
split
(
';'
)
for
(
let
i
=
0
;
i
<
cookies
.
length
;
i
++
)
{
le
t
cookie
=
cookies
[
i
].
trim
()
cons
t
cookie
=
cookies
[
i
].
trim
()
if
(
cookie
.
startsWith
(
name
+
'='
))
{
return
cookie
.
substring
(
name
.
length
+
1
)
}
...
...
@@ -15,17 +15,17 @@
}
document
.
addEventListener
(
'DOMContentLoaded'
,
function
()
{
le
t
jsessionid
=
getCookie
(
'JSESSIONID'
)
cons
t
jsessionid
=
getCookie
(
'JSESSIONID'
)
if
(
jsessionid
)
{
// JSESSIONID 쿠키 값이 있을 경우 추가할 a 태그 생성
le
t
newLink
=
document
.
createElement
(
'a'
)
cons
t
newLink
=
document
.
createElement
(
'a'
)
newLink
.
className
=
'navbar-item'
newLink
.
href
=
'https://swlab.bwg.co.kr/web/docs/bxm/swlab-docs-bxm-s/current/concepts/overview.html'
newLink
.
textContent
=
'BXM Concepts Overview'
// 기존 BXM 링크 바로 아래에 삽입
le
t
bxmLink
=
document
.
querySelector
(
cons
t
bxmLink
=
document
.
querySelector
(
'.navbar-dropdown .navbar-item[href="https://swlab.bwg.co.kr/web/docs/bxm/swlab-docs-bxm/current/index.html"]'
)
if
(
bxmLink
)
{
...
...
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