aboutsummaryrefslogtreecommitdiff
path: root/source/javascripts/twitter.js
diff options
context:
space:
mode:
authorB Mathis <brandon@imathis.com>2009-11-11 17:15:43 -0600
committerB Mathis <brandon@imathis.com>2009-11-11 17:15:43 -0600
commitb060c72c8ecdc1c6c1873cb86d8eb862344835fb (patch)
tree2930d4f482c90a40dda3dfe449b4ce08b3782eff /source/javascripts/twitter.js
parent0abf2cb9804ed3dab7539adc1e6cbc3bb0bc1cb8 (diff)
downloadmy_new_personal_website-b060c72c8ecdc1c6c1873cb86d8eb862344835fb.tar.xz
my_new_personal_website-b060c72c8ecdc1c6c1873cb86d8eb862344835fb.zip
made twitter source optional
Diffstat (limited to 'source/javascripts/twitter.js')
-rw-r--r--source/javascripts/twitter.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/javascripts/twitter.js b/source/javascripts/twitter.js
index 975e7adb..4420c710 100644
--- a/source/javascripts/twitter.js
+++ b/source/javascripts/twitter.js
@@ -16,6 +16,7 @@
var tweet_container = 'li';
var twitter_container = 'twitter_status';
var key = '-!-!-';
+var show_source = false;
window.addEvent('domready',function() {
getTwitterStatus(twitter_user);
@@ -43,7 +44,7 @@ function parseTweetMeta(tweet_data){
var source = tweet_data[3];
date = prettyDate(new Date().parse(date));
- return tweet + '<span class="meta"><a href="http://twitter.com/'+twitter_user+'/'+tweet_id+'">' + date + '</a> from ' + source + '</span>';
+ return tweet + '<span class="meta"><a href="http://twitter.com/'+twitter_user+'/'+tweet_id+'">' + date + '</a>' + (show_source ? ' from '+source : '') + '</span>';
}
function prettyDate(time){