Created
September 20, 2012 21:42
-
-
Save fastdivision/3758527 to your computer and use it in GitHub Desktop.
TweetScroller
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="stylesheet" href="css/tweetscroller.css"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#tweets').tweetscroller({ | |
autoplay: true, | |
username: 'divshot' | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment