From a4086da50960c4329664844a90f067f446ba27a8 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Thu, 21 Jun 2012 01:19:34 +0200 Subject: [PATCH] make nodes.json a variable, not a constant --- html/force.js | 2 +- html/geomap.html | 2 ++ html/geomap.js | 2 +- html/nodes.html | 3 +++ 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/html/force.js b/html/force.js index e0aacff..5f94e8e 100644 --- a/html/force.js +++ b/html/force.js @@ -292,7 +292,7 @@ var data var visible = {clients: true, vpn: true} function reload() { - d3.json("nodes.json", function(json) { + d3.json(nodes_json, function(json) { // update existing nodes with new info // XXX inefficient data structure json.nodes.forEach(function(d, i) { diff --git a/html/geomap.html b/html/geomap.html index 26682c8..8f8a069 100644 --- a/html/geomap.html +++ b/html/geomap.html @@ -23,6 +23,8 @@ +