Tweetthis.js
div
into a tweetable quote
Turn any A javascript snippet which turns any div
with the class tweetthis
into a tweetable quote - complete with a link back to the source page.
Prerequisites
Tweetthis.js was extracted from QueryTree, so relies on the same prerequisites we used there;
- Bootstrap - button styling
- Font Awesome - for the Twitter icon
Usage
- Include tweetthis.js or paste into the body of the page
- Add a
tweetthis
class to the relevantdiv
- Optionally add styles to
.btn-tweetthis
in your CSS as needed
Enjoy!
Made with ♥ by @d4software • MIT Licence