diff options
| author | Owen <despito@MacBook-Pro-de-Despito.local> | 2014-07-14 19:06:42 +0300 |
|---|---|---|
| committer | Owen <despito@MacBook-Pro-de-Despito.local> | 2014-07-14 19:06:42 +0300 |
| commit | 335af0bbf19ef4e6454233c9b4d212ee5aaa9d0d (patch) | |
| tree | 7433f0c265acf863db5a6615eab6f601c94e0dad /scripts/robot.js | |
| parent | 2d98eaaf727834c128fdd2513d43d677d97fe8d7 (diff) | |
Target and adjacent nodes are highlighted when clicked
Background click remove editing boxes and highlights
Deliverables test button adds 140 random tasks and dates
Links between nodes have two colors: blue and green for dependencies
Diffstat (limited to 'scripts/robot.js')
| -rw-r--r-- | scripts/robot.js | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/scripts/robot.js b/scripts/robot.js index f3ccc989..3292b51f 100644 --- a/scripts/robot.js +++ b/scripts/robot.js @@ -1,16 +1,23 @@ -var sentence="#Rhizibot is showing you a #tutorial "; +var sentence=""; +/*sentence+="#Rhizibot is showing you a #tutorial "; sentence+="#Rhizi visualizes data with #Graphs "; sentence+="#Graphs are great to display #relationships "; sentence+="#nodes are #entities "; sentence+="#nodes are #concepts "; sentence+="#entities can be #concepts "; sentence+="#concepts have context with #relationships "; -sentence+="We built this entire graph in 30 seconds, try it out yourself!"; +sentence+="We built this entire graph in 30 seconds, try it out yourself!";*/ sentence=""; var arr=["works on","contibutes to","likes","knows","is an expert at","donates to"]; -for(var a=0;a<30;a++){ - sentence+="#"+names[Math.floor(Math.random()*names.length)]+" "+arr[Math.round(Math.random()*4)]+" #"+sugg[Math.floor(Math.random()*sugg.length)]+" "; +var arr2=["is used by","is liked by","employs"]; +for(var a=0;a<10;a++){ + if(Math.random()>0.5){ + sentence+="#"+names[Math.floor(Math.random()*names.length)]+" "+arr[Math.round(Math.random()*4)]+" #"+sugg[Math.floor(Math.random()*sugg.length)]+" "; + }else{ + sentence+="#"+sugg[Math.floor(Math.random()*sugg.length)]+" "+arr2[Math.round(Math.random()*2)]+" #"+names[Math.floor(Math.random()*names.length)]+" "; + + } } var counter=0; @@ -23,12 +30,12 @@ setTimeout( Robot, 1000 ); }); -/* -var answer = confirm ("Would you like a tutorial?") + +/*var answer = confirm ("Would you like a tutorial?") if (answer) -setTimeout( Robot, 100 ); +setTimeout( Robot, 100 );*/ + -*/ function Robot(){ |
