diff options
| author | Owen <despito@MacBook-Pro-de-Despito.local> | 2014-08-08 15:37:21 +0300 |
|---|---|---|
| committer | Owen <despito@MacBook-Pro-de-Despito.local> | 2014-08-08 15:37:21 +0300 |
| commit | e804d1289e4c5d85279f6853754eaf42c883ba7c (patch) | |
| tree | 63854f652b9023502aebb9e2a450d817876e1a04 /scripts/textanalysis.js | |
| parent | 531d56afc8477f7c7641eb54a6c969eebc590ff5 (diff) | |
Issue #25
Diffstat (limited to 'scripts/textanalysis.js')
| -rw-r--r-- | scripts/textanalysis.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/textanalysis.js b/scripts/textanalysis.js index 77c158be..311a1ae8 100644 --- a/scripts/textanalysis.js +++ b/scripts/textanalysis.js @@ -88,7 +88,7 @@ window.setInterval(function() { $('.typeselection').css('top', -300); $('.typeselection').css('left', 0); - if(text.length*8>300)$('#textanalyser').css('width',text.length*8); + if(text.length*8>500)$('#textanalyser').css('width',text.length*8+20); // text changed text = $('#textanalyser').val(); TextAnalyser2(text, false); @@ -147,6 +147,7 @@ function TextAnalyser2(newtext, finalize) { case "and": case "+": case ",": + case "&": sentence[m]=" and "; ANDcount++; //orderStack.push("AND"); @@ -220,7 +221,7 @@ function TextAnalyser2(newtext, finalize) { if (orderStack.length > 0) graph.addNode("", "bubble", "temp"); var abnormalGraph=false; - if(newlinks.length >= 4 && ANDcount<2 )abnormalGraph=true; + if(newlinks.length >= 3 && ANDcount<2 )abnormalGraph=true; //0-N ORDER STACK for (var m = 0; m < orderStack.length - 1; m++) { |
