Mercurial > hg > wordstream
comparison wordstream/templates/index.html @ 1:af19f44024d3
scroll to bottom
| author | k0s <k0scist@gmail.com> |
|---|---|
| date | Fri, 01 Jan 2010 20:01:02 -0500 |
| parents | 8af3412e907a |
| children | ffe01043ecea |
comparison
equal
deleted
inserted
replaced
| 0:8af3412e907a | 1:af19f44024d3 |
|---|---|
| 20 var words = lastline.split(" "); | 20 var words = lastline.split(" "); |
| 21 var lastword = words[words.length - 1]; | 21 var lastword = words[words.length - 1]; |
| 22 | 22 |
| 23 if (lastword.length) { | 23 if (lastword.length) { |
| 24 $.get(lastword, function(data) { | 24 $.get(lastword, function(data) { |
| 25 if (data.length) { $('#stream').val(text + data + '\n'); } | 25 if (data.length) { |
| 26 var t = $('#stream'); | |
| 27 t.val(text + data + '\n'); | |
| 28 $('#stream').animate({scrollTop: t.height()}); | |
| 29 } | |
| 26 }); | 30 }); |
| 27 } | 31 } |
| 28 | 32 |
| 29 if (words.length > 1) { | 33 if (words.length > 1) { |
| 30 path = words.join('/'); | 34 path = words.join('/'); |
