From 4254eaa1d958157bddfbb1784d8a100540fbd658 Mon Sep 17 00:00:00 2001 From: Ivan Pozdnyakov Date: Mon, 28 Sep 2015 16:21:19 -0400 Subject: [PATCH] downloadable json data --- code.js | 1 + index.php | 1 + 2 files changed, 2 insertions(+) diff --git a/code.js b/code.js index 049f079..9712e1e 100644 --- a/code.js +++ b/code.js @@ -218,6 +218,7 @@ $(function () { // on dom ready ',"edges" :' + JSON.stringify(edges.jsons()) + '}}'; + download(data, "data.txt", "text/plain") console.log(data); // console.log(JSON.stringify(header)); // console.log(JSON.stringify(nodes.jsons())); diff --git a/index.php b/index.php index df88f7b..d699829 100644 --- a/index.php +++ b/index.php @@ -4,6 +4,7 @@ Json pathway file reader +