| author | Raphael Velt <raph.velt@gmail.com> |
| Tue, 14 Feb 2012 14:17:43 +0100 | |
| changeset 506 | f7fd2458fc5c |
| parent 404 | 89968844eb7d |
| permissions | -rw-r--r-- |
function connectTweets() { $.getJSON('http://' + document.location.hostname + ':8888/?callback=?', function(data) { loadTweets(data.tweets) } ); setInterval(function() { if (!twCx.tweets) { return; } $.getJSON('http://' + document.location.hostname + ':8888/?after_id=' + twCx.tweets[twCx.tweets.length - 1].id + '&callback=?', function(data) { loadTweets(data.tweets, true); }); }, 1000) }