Commit f7206f62 authored by stuart nelson's avatar stuart nelson

Ditch sidebar layout

parent 5a3e1d45
......@@ -2,10 +2,9 @@
title: Routing tree editor
sort_rank: 4
nav_icon: sliders
layout: docs
---
<style>
body {
.routing-table {
font: 12px sans-serif;
}
......
// Setup
// Modify the diameter to expand/contract space between nodes.
var anchor = document.querySelector(".doc-content").parentElement;
var anchor = document.querySelector(".page-header").parentElement;
var diameter = anchor.clientWidth;
var color = "#e6522c";
......@@ -39,10 +39,11 @@ function parseSearch(searchString) {
function resetSVG() {
d3.select(anchor).select("svg").remove()
svg = d3.select(anchor).append("svg")
.classed("routing-table", true)
.attr("width", diameter)
.attr("height", diameter - 150)
.append("g")
.attr("transform", "translate(" + diameter / 2 + "," + (diameter / 2 - 250) + ")");
.attr("transform", "translate(" + diameter / 2 + "," + (diameter / 2 - 200) + ")");
}
// Click handler for reading config.yml
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment