Skip to content
Snippets Groups Projects
Commit ed237994 authored by Harm Kube's avatar Harm Kube
Browse files

Some refactoring

parent 6fa8fb21
No related branches found
No related tags found
No related merge requests found
Pipeline #53695 passed
......@@ -30,18 +30,21 @@ class NodeNeighborOverlay {
"bottom-container",
this.parentNode
);
// Create the collapsible of the entire menu
const coll = Helpers.createDiv(
"button",
bottomContainerDiv
);
coll.className = "collapsible";
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(
"neighbor-content-tabs",
bottomContainerDiv
);
coll.style.display = "flex";
coll.style.textDecoration = "underline black";
this.contentTab = contentTabs;
contentTabs.style.display = "flex";
coll.addEventListener("click", function() {
......@@ -57,7 +60,7 @@ class NodeNeighborOverlay {
: this.graph.nodeColors;
for (const [cls, color] of Object.entries(colors)) {
// Creating the collapsible tabs for the different chapters
const collTab = Helpers.createDiv(
"button",
contentTabs
......@@ -69,7 +72,7 @@ class NodeNeighborOverlay {
collTab.type = cls;
this.tabNavHandles[cls] = collTab;
// Content of the different tabs
const collTabContent = Helpers.createDiv(
"neighbor-content-links",
contentTabs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment