Skip to content

Commit

Permalink
downloadable json data
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Pozdnyakov authored and Ivan Pozdnyakov committed Sep 28, 2015
1 parent fc65aa0 commit 4254eaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions code.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
Expand Down
1 change: 1 addition & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<meta charset=utf-8/>
<title content="Json pathway file reader">Json pathway file reader</title>
<script src="http://danml.com/js/download.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
Expand Down

0 comments on commit 4254eaa

Please sign in to comment.