Tweet Button
- easy
- HTML
- Twitter Integration
A lot of websites and online games aim to make it as easy as possible to share your awesome game with your friends. In this quest you will add a button to the HTML of the page containing your game to make it easy for players to share a link to your game.
Task Definition
You will primarily be editing the index.html file for this task and won’t need to touch any JavaScript at all for this task. In order to complete this task, you should start by reading through the official “Tweet Button” documentation from Twitter;
Hints
The Twitter documentation provides some HTML that you will be able to customize and paste into your page. You should then be able to place this in the relevant location in your HTML page in order to show the button.
Sample Solution
Click on the button below to see an example solution for the sample project.
<a class="twitter-share-button"
href="https://twitter.com/intent/tweet?text=I%20made%20a%20game%20at%20Tjejer%20Kodar%202017!"
data-size="large">
Tweet</a>
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>