Skip to content

Commit

Permalink
moved the BGP graph around and the position is now configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Neuner committed Apr 22, 2022
1 parent 2490789 commit 81bab74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lookingglass/lookingglass.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ <h1 id="lg-query-heading"></h1>
</template>
<template id="lg-template-result-prefix">
<div id="lg-result-block">
<p id="lg-prefix-results" class="lg-prefix-results"></p>
<div id="lg-result-bgp-graph" class="lg-result-bgp-graph"></div>
<div id="lg-prefix-results" class="lg-prefix-results"></div>
</div>
</template>
<template id="lg-template-prefix-router">
Expand Down
3 changes: 2 additions & 1 deletion lookingglass/lookingglass.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,8 @@ function displayPrefix(data, container) {
var bgpGraphBlock = document.importNode(bgpGraphTemplate.content, true);
var bgpGraph = bgpGraphBlock.querySelector("#lg-bgp-graph");
bgpGraph.textContent = prefixResultsToGraph(data.results);
resultBlock.appendChild(bgpGraphBlock);
var bgpGraphContainer = resultBlock.querySelector("#lg-result-bgp-graph");
bgpGraphContainer.appendChild(bgpGraphBlock);
mermaid.init();
}
}
Expand Down

0 comments on commit 81bab74

Please sign in to comment.