diff --git a/code.js b/code.js index b49bd3c..6b36a2b 100644 --- a/code.js +++ b/code.js @@ -188,6 +188,11 @@ $(function () { // on dom ready bundleCounter++; } + + function produceJSON(event){ + var j = cy.elements().jsons(); + console.log(j); + } function visual_pathway(obj) { $('#cy').cytoscape({ @@ -370,4 +375,5 @@ $(function () { // on dom ready document.getElementById('delete').addEventListener('click', remove); document.getElementById('add').addEventListener('click', add); document.getElementById('bundle').addEventListener('click',bundle); + document.getElementById('produceJSON').addEventListener('click',produceJSON); }); // on dom ready diff --git a/index.php b/index.php index d0ca7dc..cc25e37 100644 --- a/index.php +++ b/index.php @@ -58,6 +58,7 @@ function dataURLtoBlob(dataURL) { +