diff --git a/html/force-big.css b/html/force-big.css index c4ea7f0..47bef13 100644 --- a/html/force-big.css +++ b/html/force-big.css @@ -49,6 +49,6 @@ fill: #C83771; } -sidebar { +#sidebar { color: #ddd; } diff --git a/html/force-light.css b/html/force-light.css index 7c8735e..d2e25f9 100644 --- a/html/force-light.css +++ b/html/force-light.css @@ -55,6 +55,6 @@ fill: #C83771; } -sidebar { +#sidebar { color: #777; } diff --git a/html/force.css b/html/force.css index 6c99999..b5f41e7 100644 --- a/html/force.css +++ b/html/force.css @@ -131,7 +131,7 @@ text-shadow: none; } -sidebar { +#sidebar { position: absolute; top: 1em; right: 1.5em; @@ -153,7 +153,7 @@ sidebar { vertical-align: center; } -sidebar h2 { +#sidebar h2 { margin-top: 0; font-size: 9pt; } diff --git a/html/force.js b/html/force.js index 7c29345..56a3f15 100644 --- a/html/force.js +++ b/html/force.js @@ -5,13 +5,15 @@ function switch_style(s) { for (var i = 0; i < el.length; i++ ) { if (el[i].getAttribute("rel").indexOf("style") != -1 && el[i].getAttribute("title")) { - if (el[i].getAttribute("title") == s) { - style_btn.text(s) + /* always set to true first to workaround Chrome bug */ + el[i].disabled = true + + if (el[i].getAttribute("title") == s) el[i].disabled = false - } else - el[i].disabled = true } } + + style_btn.text(s) } function getOffset( el ) { @@ -109,7 +111,7 @@ btns.append("button") .text("VPN") .on("click", update_graph) -var meshinfo = d3.select("sidebar") +var meshinfo = d3.select("#sidebar") .insert("div", ":first-child") meshinfo.append("h2").text("Mesh") diff --git a/html/nodes.html b/html/nodes.html index 728f6f8..e91eccf 100644 --- a/html/nodes.html +++ b/html/nodes.html @@ -5,7 +5,7 @@ Freifunk Lübeck - Knotengraph - + @@ -22,7 +22,7 @@
- +