blob: 233faf3f5996527a0ea3c92c1b0d956c5fca3a9c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
var sentence="";
/*sentence+=" #Rhizibot is showing you a #tutorial|";
sentence+="#Rhizi visualizes data with #Graphs and #relationships|";
sentence+="#links and #nodes have #context and #meaning|";
sentence+="#entities and #concepts are #nodes|";
sentence+="We built this entire graph in 30 seconds, try it out yourself!";*/
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 #"multiple words" as a #Node|';
sentence+='#"John Smith"|';
sentence+='#"Beauty and the beast"|';
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 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+='#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;
var robot;
var speed=1;
$('.logo').click(function(){
setTimeout( Robot, 1000 );
});
/*var answer = confirm ("Would you like a tutorial?")
if (answer)
setTimeout( Robot, 100 );*/
function Robot(){
if(counter<=sentence.length){
var text=$('#textanalyser').val();
counter++;
if(sentence.charAt(counter)!=="|"){
$('#textanalyser').val(text+sentence.charAt(counter));
//if(Math.random()>0.9)graph.editType("x","temp",nodetypes[Math.round(Math.random()*4)]);
if(sentence.charAt(counter)==="#"){
sentencecounter++;
window.setTimeout( Robot, 30/speed+Math.random()*160/speed );
}else{
window.setTimeout( Robot, 50/speed+Math.round(Math.random()*100/speed) );
}
}else{
var e = jQuery.Event("keypress");
e.which = 13;
e.keyCode = 13;
$("#textanalyser").trigger(e);
window.setTimeout( Robot, 650/speed );
}
}else{
window.clearInterval(robot);
}
}
|