Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 710 Bytes

File metadata and controls

24 lines (14 loc) · 710 Bytes

Tweetthis.js 

Turn any div into a tweetable quote

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

  1. Include tweetthis.js or paste into the body of the page
  2. Add a tweetthis class to the relevant div
  3. Optionally add styles to .btn-tweetthis in your CSS as needed

Enjoy!


Made with ♥ by @d4software • MIT Licence