Commit f956ad8a authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

add Load JSON button.

parent fe2282a1
......@@ -57,6 +57,7 @@
<div class="six columns alpha">
<div>Input</div>
<textarea rows="20" cols="47" id="json_output"></textarea>
<a id="load_json">Load JSON</a>
</div>
<div class="six columns alpha">
<div>Result</div>
......
......@@ -413,6 +413,13 @@
$(window).resize(function () {
dream_instance.redraw();
});
// Load JSON button for debugging
$("#load_json").button().click(function () {
dream_instance.clearAll();
loadData(JSON.parse($("#json_output").val()));
});
});
$("#graph_zone").hide();
......
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