summaryrefslogtreecommitdiff
path: root/scripts/robot.js
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/robot.js')
-rw-r--r--scripts/robot.js14
1 files changed, 8 insertions, 6 deletions
diff --git a/scripts/robot.js b/scripts/robot.js
index 71679807..c1631263 100644
--- a/scripts/robot.js
+++ b/scripts/robot.js
@@ -1,3 +1,5 @@
+"use strict"
+
var sentence="";
/*sentence+=" #Rhizibot is showing you a #tutorial|";
sentence+="#Rhizi visualizes data with #Graphs and #relationships|";
@@ -43,8 +45,8 @@ setTimeout( Robot, 100 );*/
function Robot(){
-
-
+
+
if(counter<=sentence.length){
var text=$('#textanalyser').val();
counter++;
@@ -60,7 +62,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 );
@@ -68,10 +70,10 @@ function Robot(){
}else{
window.clearInterval(robot);
}
-
-
-
+
+
+
}