Skip to content

Instantly share code, notes, and snippets.

@martylouis
Last active October 13, 2015 18:08
Show Gist options
  • Save martylouis/4235639 to your computer and use it in GitHub Desktop.
Save martylouis/4235639 to your computer and use it in GitHub Desktop.
Custom twitter widget
// Custom Twitter Widget
$(document).ready(function() {
$.getScript('http://widgets.twimg.com/j/2/widget.js', function() {
new TWTR.Widget({
version: 2,
type: 'profile',
rpp: 3,
id: 'twitterWidget',
interval: 9999,
width: "auto",
height: auto,
theme: {
shell: {
background: 'transparent',
color: '#888'
},
tweets: {
background: 'transparent',
color: '#444',
links: 'blue'}
},
features: {
scrollbar: false,
loop: false,
live: true,
hashtags: true,
timestamp: true,
avatars: false,
behavior: 'default'
}
}).render().setUser('@twitter').start();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment