summaryrefslogtreecommitdiff
path: root/scripts/rhizicore.js
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/rhizicore.js')
-rw-r--r--scripts/rhizicore.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/rhizicore.js b/scripts/rhizicore.js
index 37b61330..29944756 100644
--- a/scripts/rhizicore.js
+++ b/scripts/rhizicore.js
@@ -692,6 +692,15 @@ function myGraph(el) {
var graph = new myGraph(document.body);
+var debug_print = function(message) {
+ var element = $(".debug");
+ if (element.length == 1) {
+ element.html(message);
+ } else {
+ console.log(message);
+ }
+}
+
var newnodes=1;
function tick(e) {
//console.log(e);