Skip to content

Instantly share code, notes, and snippets.

@clauswitt
Created February 17, 2011 16:58
Show Gist options
  • Save clauswitt/832112 to your computer and use it in GitHub Desktop.
Save clauswitt/832112 to your computer and use it in GitHub Desktop.
templateString: "<div>Twitter Widget for ${tweeter}</div>",
tweeter: 'clauswitt',
tweetCount: 3,
tweetSearchUrl: 'http://search.twitter.com/search.json',
header: 'Twitter Widget',
preamble: function() {
arguments[0].class = 'twitterTickerWidget ' + arguments[0].class;
if(typeof arguments[0].header == 'undefined' || arguments[0].header == '') {
arguments[0].header = arguments[0].tweeter;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment