summaryrefslogtreecommitdiff
path: root/scripts/robot.js
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/robot.js')
-rw-r--r--scripts/robot.js31
1 files changed, 16 insertions, 15 deletions
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);
}
+
-
-
-
+
+
}