Skip to content

Instantly share code, notes, and snippets.

@fastdivision
Created September 20, 2012 21:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fastdivision/3758527 to your computer and use it in GitHub Desktop.
Save fastdivision/3758527 to your computer and use it in GitHub Desktop.
TweetScroller
<link rel="stylesheet" href="css/tweetscroller.css">
<div id="tweets"></div>
<script id="tweet-template" type="text/x-handlebars-template">
<div class="tweet">
<blockquote class="twitter-tweet">
<div class="vcard author">
<a class="screen-name url" href="https://twitter.com/{{user.screen_name}}">
<span class="avatar">
<img src="{{user.profile_image_url}}" class="photo">
</span>
<span class="fn">{{user.name}}</span>
</a>
<a class="nickname" href="https://twitter.com/{{user.screen_name}}"><span>@{{user.screen_name}}</span></a>
</div>
<div class="entry-content">
<p class="entry-title">{{text}}</p>
</div>
<div class="footer">
<a class="view-details" href="https://twitter.com/{{user.screen_name}}/status/{{id_str}}">{{created_at}}</a>
</div>
</blockquote>
</div>
</script>
$('#tweets').tweetscroller({
autoplay: true,
username: 'divshot'
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment