xonecas.io
57
Fi

firelaunch / commit e0339f4

touched readme

xonecas2011-03-07 e0339f4cd6b047f11734ce717ac7a9e0fbc07600 parent 8f2edc2

3 files changed

README+0−0
js/script.js+1−2
@@ -12,7 +12,6 @@ function addTweet (tweet) {
1212 timeStr = 'on '+ time.toDateString() +
1313 'at '+ time.toTimeString();
1414
15-
1615 $('#count').html(tweet.stats.count);
1716 $('#min_rate').html(stats.perMin);
1817 $('#hour_rate').html(stats.perHour);
@@ -20,7 +19,7 @@ function addTweet (tweet) {
2019
2120 $('#list li:first-child').before(
2221 '<li class="tweet clearfix">'+
23-' <img src="'+ tweet.user.profile_image_url +'" />'+
22+' <img width="48" height="48" src="'+ tweet.user.profile_image_url +'" />'+
2423 ' <div class="text">'+ tweet.text +'</div>'+
2524 ' <div class="meta">'+
2625 ' <a href="//twitter.com/'+name+
server.js+1−0
@@ -90,6 +90,7 @@ twitter.stream('statuses/filter', {track: 'firefox 4, ff4, firefox4, fx4, ffx4'}
9090 socket.broadcast(JSON.stringify(twiit));
9191 cache.unshift(twiit);
9292 cache = cache.slice(0, 25); // save the cache
93+ cache.reverse(); // latest at the top
9394
9495 console.log('===== Twits containing firefox: '+ stats.count);