diff options
author | Brandon Mathis <brandon@imathis.com> | 2011-06-08 14:18:37 -0400 |
---|---|---|
committer | Brandon Mathis <brandon@imathis.com> | 2011-06-08 14:18:37 -0400 |
commit | 7957858bc6ed36c9a27e9aec35646239f905303a (patch) | |
tree | ac39d0fc12c6f658add23c6ab2fa8acbbfe19ce3 /themes/classic/source/javascripts | |
parent | aa230616241321ca9c4b8f4202d045c829527618 (diff) | |
download | my_new_personal_website-7957858bc6ed36c9a27e9aec35646239f905303a.tar.xz my_new_personal_website-7957858bc6ed36c9a27e9aec35646239f905303a.zip |
Typographic trying out some webfonts
Media query layout improvements
Twitter now splits tweets with <br> and </p><p> on \n and \n\n
RSS icon made a bit smaller
Diffstat (limited to 'themes/classic/source/javascripts')
-rw-r--r-- | themes/classic/source/javascripts/twitter.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/classic/source/javascripts/twitter.js b/themes/classic/source/javascripts/twitter.js index eda13c93..2b8a1ec3 100644 --- a/themes/classic/source/javascripts/twitter.js +++ b/themes/classic/source/javascripts/twitter.js @@ -26,7 +26,7 @@ function showTwitterFeed(tweets, twitter_user){ var timeline = document.getElementById('tweets'); timeline.innerHTML=''; for (t in tweets){ - timeline.innerHTML+='<li>'+'<p>'+'<a href="http://twitter.com/'+twitter_user+'/status/'+tweets[t].id_str+'">'+prettyDate(tweets[t].created_at)+'</a>'+linkifyTweet(tweets[t].text)+'</p>'+'</li>'; + timeline.innerHTML+='<li>'+'<p>'+'<a href="http://twitter.com/'+twitter_user+'/status/'+tweets[t].id_str+'">'+prettyDate(tweets[t].created_at)+'</a>'+linkifyTweet(tweets[t].text.replace(/\n{2}/, '</p><p>').replace(/\n/, '<br>'))+'</p>'+'</li>'; } } function linkifyTweet(text){ |