-
-
Save freekrai/04f263824fd0449ac959 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
<script src="//platform.twitter.com/widgets.js"></script> | |
<script> | |
var tweet = { | |
url: "", // url to share | |
via: "", // omit @, twitter username | |
text: "", // tweet text | |
hashtags: "" // omit #, comma seperated "twitter,twitterapi" | |
} | |
var intent_url = 'https://twitter.com/intent/tweet?' + $.param(tweet); | |
$('a#tweet-button').attr('href', intent_url); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment