Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Small tweaks

  • Loading branch information...
commit 893ff085a7e654f8fe88be7bfaf7b293582aa45a 1 parent 003efe1
@danielmorrison danielmorrison authored
Showing with 14 additions and 7 deletions.
  1. +14 −7 index.html
View
21 index.html
@@ -14,13 +14,19 @@
// since_id
var url = 'http://search.twitter.com/search.json?q=' + query + '&rpp=30&callback=?';
- $.getJSON(url, function(data) {
- tweets.concat(data.results);
- $.each(data.results, function() {
- $('#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>');
- });
- });
+ function fetchTweets() {
+ $.getJSON(url, function(data) {
+ tweets.concat(data.results);
+ $.each(data.results, function() {
+ $('#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>
<style type="text/css">
@@ -47,6 +53,7 @@
padding: 0;
height: 100%;
width: 100%;
+ overflow: hidden;
}
#tweets li {
overflow: hidden;
Please sign in to comment.
Something went wrong with that request. Please try again.