Skip to content

Commit

Permalink
Small tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmorrison committed May 4, 2009
1 parent 003efe1 commit 893ff08
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions index.html
Expand Up @@ -14,13 +14,19 @@


// since_id // since_id
var url = 'http://search.twitter.com/search.json?q=' + query + '&rpp=30&callback=?'; var url = 'http://search.twitter.com/search.json?q=' + query + '&rpp=30&callback=?';
$.getJSON(url, function(data) { function fetchTweets() {
tweets.concat(data.results); $.getJSON(url, function(data) {
$.each(data.results, function() { tweets.concat(data.results);
$('#tweets').scrollbox.push($('<li><img class="profile" src="' + this.profile_image_url + '"/><span class="from">' + this.from_user + ':</span> ' + this.text + '</li>')); $.each(data.results, function() {
// $('#tweets').append('<li><img class="profile" src="' + this.profile_image_url + '"/><span class="from">' + this.from_user + ':</span> ' + this.text + '</li>'); $('#tweets').scrollbox.push($('<li><img class="profile" src="' + this.profile_image_url + '"/><span class="from">' + this.from_user + ':</span> ' + this.text + '</li>'));
}); // $('#tweets').append('<li><img class="profile" src="' + this.profile_image_url + '"/><span class="from">' + this.from_user + ':</span> ' + this.text + '</li>');
}); });
});
}

window.setTimeout(fetchTweets, 60000);

fetchTweets();
}); });
</script> </script>
<style type="text/css"> <style type="text/css">
Expand All @@ -47,6 +53,7 @@
padding: 0; padding: 0;
height: 100%; height: 100%;
width: 100%; width: 100%;
overflow: hidden;
} }
#tweets li { #tweets li {
overflow: hidden; overflow: hidden;
Expand Down

0 comments on commit 893ff08

Please sign in to comment.