Skip to content

Instantly share code, notes, and snippets.

@rweald
Created October 9, 2011 22:12
Show Gist options
  • Save rweald/1274276 to your computer and use it in GitHub Desktop.
Save rweald/1274276 to your computer and use it in GitHub Desktop.
How Twitter configures a tweet button with only markup
<script src="//platform.twitter.com/widgets.js" type="text/javascript"></script>
<div>
<a href="https://twitter.com/share" class="twitter-share-button"
data-url="https://dev.twitter.com/pages/tweet_button"
data-via="your_screen_name"
data-text="Checking out this page about Tweet Buttons"
data-related="anywhere:The Javascript API"
data-count="vertical">Tweet</a>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment