summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorgarbash <dor.garbash@gmail.com>2014-08-17 13:03:34 +0300
committergarbash <dor.garbash@gmail.com>2014-08-17 13:03:34 +0300
commitbd7313e6b0bb64b2eeb2ce46cbb1949dd0af977a (patch)
treecf4c8ecab4bc5443ed635770ecd073a360c21b2a /scripts
parent72fbcd4787de95187ed574d492cb4774e1e68d1a (diff)
Display more chars of node titles on default
Diffstat (limited to 'scripts')
-rw-r--r--scripts/rhizicore.js4
-rw-r--r--scripts/robot.js31
-rw-r--r--scripts/weizmann graph1
3 files changed, 19 insertions, 17 deletions
diff --git a/scripts/rhizicore.js b/scripts/rhizicore.js
index 5c286cd6..c04fec10 100644
--- a/scripts/rhizicore.js
+++ b/scripts/rhizicore.js
@@ -485,8 +485,8 @@ function myGraph(el) {
else if (d.state === "chosen") {
return d.id;
} else {
- if (d.id.length < 14) return d.id;
- else return d.id.substring(0, 11) + "...";
+ if (d.id.length < 25) return d.id;
+ else return d.id.substring(0, 25) + "...";
}
})
.on("click", function(d, i) {
diff --git a/scripts/robot.js b/scripts/robot.js
index c1631263..233faf3f 100644
--- a/scripts/robot.js
+++ b/scripts/robot.js
@@ -1,5 +1,3 @@
-"use strict"
-
var sentence="";
/*sentence+=" #Rhizibot is showing you a #tutorial|";
sentence+="#Rhizi visualizes data with #Graphs and #relationships|";
@@ -10,21 +8,24 @@ sentence+="We built this entire graph in 30 seconds, try it out yourself!";*/
-sentence+='Hi, Rhizibot here! Let me show you how to create networks|';
-sentence+='#Rhizi is really fast at generating #Graphs|';
-sentence+='Use the "#" hashtag to before writing to create a node|';
+sentence+=' #Hi, this is #Rhizibot!|';
+sentence+='#Rhizi is a tool for creating interactive #Networks|';
+sentence+='With #Rhizi your #Text becomes a #Network"|';
+sentence+='Use the #hashtag(#) before a word to create it as #Node|';
sentence+='#Hello|';
sentence+='#John|';
-sentence+='Use commas if what you want to write has multiple words|';
+sentence+='Use #commas("") if what you want to write #"multiple words" as a #Node|';
sentence+='#"John Smith"|';
sentence+='#"Beauty and the beast"|';
-sentence+='Nodes can be connected using words|';
+sentence+='a #Node is connected to all other #Nodes in the #sentence|';
sentence+='#John is a friend of #Tim|';
sentence+='#"Beauty and the beast" is film by #Disney|';
-sentence+='Use "and" to connect multiple things together|';
+sentence+='Use the word #"and" to #"connect multiple things together"|';
sentence+='#John likes #Apples and #Oranges and #Pistachio|';
-sentence+='You can choose the node type by using right arrow or left arrow|';
+sentence+='You can choose the node type by using #"right arrow" or #"left arrow|"';
sentence+='#Rhizi is useful for #"Mapping ideas" and "#"Creating info graphics" and #"Organising knowledge"|';
+sentence+="#You can click on any #Node to change and modify it's #Properties|";
+sentence+='#Play around and have #Fun!|';
var counter=0;
var sentencecounter=0;
@@ -45,8 +46,8 @@ setTimeout( Robot, 100 );*/
function Robot(){
-
-
+
+
if(counter<=sentence.length){
var text=$('#textanalyser').val();
counter++;
@@ -62,7 +63,7 @@ function Robot(){
}
}else{
var e = jQuery.Event("keypress");
- e.which = 13;
+ e.which = 13;
e.keyCode = 13;
$("#textanalyser").trigger(e);
window.setTimeout( Robot, 650/speed );
@@ -70,10 +71,10 @@ function Robot(){
}else{
window.clearInterval(robot);
}
+
-
-
-
+
+
}
diff --git a/scripts/weizmann graph b/scripts/weizmann graph
new file mode 100644
index 00000000..326c9fc9
--- /dev/null
+++ b/scripts/weizmann graph
@@ -0,0 +1 @@
+{"nodes":[{"id":"Oren","type":"person","state":"perm","start":0,"end":0,"status":"unknown"},{"id":"Hila","type":"person","state":"perm","start":0,"end":0,"status":"unknown"},{"id":"Yuval","type":"person","state":"perm","start":0,"end":0,"status":"unknown"},{"id":"Pareto Morphology","type":"project","state":"perm","start":0,"end":0,"status":"unknown"},{"id":"Avi","type":"person","state":"perm","start":0,"end":0,"status":"unknown"},{"id":"circuits","type":"project","state":"perm","start":0,"end":0,"status":"unknown"},{"id":"Pablo","type":"person","state":"perm","start":0,"end":0,"status":"unknown"},{"id":"FCD","type":"project","state":"perm","start":0,"end":0,"status":"unknown"},{"id":"animals","type":"project","state":"perm","start":0,"end":0,"status":"unknown"},{"id":"ParTI","type":"project","state":"perm","start":0,"end":0,"status":"unknown"},{"id":"genotypes","type":"project","state":"perm","start":0,"end":0,"status":"unknown"},{"id":"Miri","type":"person","state":"perm","start":0,"end":0,"status":"unknown"},{"id":"Jean","type":"person","state":"perm","start":0,"end":0,"status":"unknown"},{"id":"Physisist","type":"skill","state":"perm","start":0,"end":0,"status":"unknown"},{"id":"Chemist","type":"skill","state":"perm","start":0,"end":0,"status":"unknown"},{"id":"Mathematician","type":"skill","state":"perm","start":0,"end":0,"status":"unknown"}],"links":[{"source":"Yuval","target":"Pareto Morphology","name":"work on "},{"source":"Oren","target":"Pareto Morphology","name":"work on "},{"source":"Oren","target":"Pareto Morphology","name":"work on "},{"source":"Hila","target":"Pareto Morphology","name":"work on "},{"source":"Hila","target":"Pareto Morphology","name":"work on "},{"source":"Avi","target":"Pareto Morphology","name":"works on "},{"source":"Avi","target":"Pareto Morphology","name":"works on "},{"source":"Avi","target":"circuits","name":"works on "},{"source":"Avi","target":"circuits","name":"works on "},{"source":"Pablo","target":"circuits","name":"works on "},{"source":"Pablo","target":"circuits","name":"works on "},{"source":"Pablo","target":"FCD","name":"works on "},{"source":"Pablo","target":"animals","name":"works on "},{"source":"Pablo","target":"ParTI","name":"works on "},{"source":"Avi","target":"circuits","name":"works on "},{"source":"Avi","target":"circuits","name":"works on "},{"source":"Avi","target":"FCD","name":"works on "},{"source":"Avi","target":"animals","name":"works on "},{"source":"Yuval","target":"ParTI","name":"works on "},{"source":"Yuval","target":"ParTI","name":"works on "},{"source":"Hila","target":"circuits","name":"works on "},{"source":"Hila","target":"circuits","name":"works on "},{"source":"Hila","target":"genotypes","name":"works on "},{"source":"Miri","target":"FCD","name":"works on "},{"source":"Miri","target":"FCD","name":"works on "},{"source":"Hila","target":"ParTI","name":"wrote the code and consulted with the math in "},{"source":"Hila","target":"ParTI","name":"wrote the code and consulted with the math in "},{"source":"Avi","target":"ParTI","name":"prepared graphical interface to "},{"source":"Avi","target":"ParTI","name":"prepared graphical interface to "},{"source":"Jean","target":"ParTI","name":"helped with biological interpretations in the project "},{"source":"Jean","target":"ParTI","name":"helped with biological interpretations in the project "},{"source":"Pablo","target":"Physisist","name":"is a "},{"source":"Physisist","target":"Chemist","name":" and a "},{"source":"Pablo","target":"Physisist","name":"is a "},{"source":"Pablo","target":"Chemist","name":"is a "},{"source":"Yuval","target":"Physisist","name":"is a "},{"source":"Physisist","target":"Mathematician","name":" and a "},{"source":"Hila","target":"Physisist","name":"is a "},{"source":"Hila","target":"Mathematician","name":"is a "},{"source":"Yuval","target":"Physisist","name":"is a "},{"source":"Yuval","target":"Mathematician","name":"is a "}]} \ No newline at end of file