JSFiddle - React, Tailwind, and code Playground
by Andrea Scanu
HTML
<script src="http://elektronaut.github.com/jquery.livetwitter/cdn/jquery.livetwitter-1.7.0.min.js"></script>
<div id="example" class="tweets">
<div class="loading">Loading tweets...</div>
</div>
CSS
.tweets {
background: #444;
padding: 1px 5px;
-moz-border-radius: 8px;
-webkit-border-radius: 8px;
}
.tweets .loading {
padding: 10px 20px;
color: #ccc;
}
.tweet {
font-size: 13px;
background: #fff;
margin: 4px 0;
padding: 8px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
}
.tweet img {
float: left;
}
.tweet .text {
margin: 0;
margin-left: 44px;
}
.tweet .username {
display: block;
}
.tweet .username a {
font-weight: bold;
text-decoration: none;
color: #111;
}
.tweet .time a {
font-size: 80%;
color: #888;
white-space: nowrap;
text-decoration: none;
padding-left: 8px;
}
#searchTerm {
color: #111;
background: #fff;
padding: 0 8px;
}
JavaScript
$(".tweets").liveTwitter('elektronaut', {mode: 'user_timeline'}, function(){
$('#example .loading').remove();
});