Skip to content

Instantly share code, notes, and snippets.

@alexanderscott
Last active December 10, 2015 11:58
Show Gist options
  • Save alexanderscott/4430947 to your computer and use it in GitHub Desktop.
Save alexanderscott/4430947 to your computer and use it in GitHub Desktop.
$.getScript("http://platform.twitter.com/widgets.js", function(){
function handleTweetEvent(event){
if (event) {
alert("This is a callback from a tweet")
}
}
twttr.events.bind('tweet', handleTweetEvent);
});
<a href="http://twitter.com/intent/tweet?url=http://test.com;via=stack">twitter</a>
// OTHER
twttr.ready(function (twttr) {
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment