Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Knowledge Space WP Plugin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
alg
Knowledge Space WP Plugin
Commits
ed237994
Commit
ed237994
authored
3 years ago
by
Harm Kube
Browse files
Options
Downloads
Patches
Plain Diff
Some refactoring
parent
6fa8fb21
No related branches found
No related tags found
No related merge requests found
Pipeline
#53695
passed
3 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
display/overlays/neighbors.js
+7
-4
7 additions, 4 deletions
display/overlays/neighbors.js
with
7 additions
and
4 deletions
display/overlays/neighbors.js
+
7
−
4
View file @
ed237994
...
@@ -30,18 +30,21 @@ class NodeNeighborOverlay {
...
@@ -30,18 +30,21 @@ class NodeNeighborOverlay {
"
bottom-container
"
,
"
bottom-container
"
,
this
.
parentNode
this
.
parentNode
);
);
// Create the collapsible of the entire menu
const
coll
=
Helpers
.
createDiv
(
const
coll
=
Helpers
.
createDiv
(
"
button
"
,
"
button
"
,
bottomContainerDiv
bottomContainerDiv
);
);
coll
.
className
=
"
collapsible
"
;
coll
.
className
=
"
collapsible
"
;
coll
.
innerText
=
"
Verwandte Inhalte
"
;
coll
.
innerText
=
"
Verwandte Inhalte
"
;
coll
.
style
.
display
=
"
flex
"
;
coll
.
style
.
textDecoration
=
"
underline black
"
;
// Div that displays the information about all the chapters
var
contentTabs
=
Helpers
.
createDiv
(
var
contentTabs
=
Helpers
.
createDiv
(
"
neighbor-content-tabs
"
,
"
neighbor-content-tabs
"
,
bottomContainerDiv
bottomContainerDiv
);
);
coll
.
style
.
display
=
"
flex
"
;
coll
.
style
.
textDecoration
=
"
underline black
"
;
this
.
contentTab
=
contentTabs
;
this
.
contentTab
=
contentTabs
;
contentTabs
.
style
.
display
=
"
flex
"
;
contentTabs
.
style
.
display
=
"
flex
"
;
coll
.
addEventListener
(
"
click
"
,
function
()
{
coll
.
addEventListener
(
"
click
"
,
function
()
{
...
@@ -57,7 +60,7 @@ class NodeNeighborOverlay {
...
@@ -57,7 +60,7 @@ class NodeNeighborOverlay {
:
this
.
graph
.
nodeColors
;
:
this
.
graph
.
nodeColors
;
for
(
const
[
cls
,
color
]
of
Object
.
entries
(
colors
))
{
for
(
const
[
cls
,
color
]
of
Object
.
entries
(
colors
))
{
// Creating the collapsible tabs for the different chapters
const
collTab
=
Helpers
.
createDiv
(
const
collTab
=
Helpers
.
createDiv
(
"
button
"
,
"
button
"
,
contentTabs
contentTabs
...
@@ -69,7 +72,7 @@ class NodeNeighborOverlay {
...
@@ -69,7 +72,7 @@ class NodeNeighborOverlay {
collTab
.
type
=
cls
;
collTab
.
type
=
cls
;
this
.
tabNavHandles
[
cls
]
=
collTab
;
this
.
tabNavHandles
[
cls
]
=
collTab
;
// Content of the different tabs
const
collTabContent
=
Helpers
.
createDiv
(
const
collTabContent
=
Helpers
.
createDiv
(
"
neighbor-content-links
"
,
"
neighbor-content-links
"
,
contentTabs
contentTabs
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment