Created
April 20, 2010 18:43
-
-
Save deepakjois/372878 to your computer and use it in GitHub Desktop.
This file contains 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
// get the list of twitter usernames from the html of an element (entered in CMS) and then display. | |
$($("#twitterlist p").html().split(",")).each( function(i) { | |
$.trim(this); | |
$("#twitter-users").append($("<div/>").attr({id: "user-" + i, class: "item"})); | |
getTwitters('user-' + i, { | |
id: this, | |
count: 1, | |
enableLinks: true, | |
ignoreReplies: true, | |
clearContents: true, | |
template: '<img class="fl" width="44" height="44" src="%user_profile_image_url%" > <a class="username" href="http://twitter.com/%user_screen_name%">%user_name%</a> <br> %text%' | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment