Skip to content

Commit

Permalink
README update
Browse files Browse the repository at this point in the history
  • Loading branch information
gwagroves committed Mar 7, 2017
1 parent b9b2933 commit 5ae4560
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Share-Links
# Share Links

Simple non-api share links for Facebook & Twitter.
Simple non-API share links for Facebook, Twitter, WhatsApp and Weibo. No platform specific JavaScript required (e.g. Facebook SDK).

Currently requires jQuery.

[![Build Status](https://travis-ci.org/gwa/share-links.svg?branch=master)](https://travis-ci.org/gwa/share-links)

Expand All @@ -16,11 +18,12 @@ bower install --save gwa-share-links
<a href="http://linkto.share.com/" class="fb-share">Share on Facebook</a>
<a href="http://linkto.share.com/" data-content="#hashtag content" class="tw-share">Share on Twitter</a>
<a href="http://linkto.share.com/" class="wa-share">Share on Whatsapp</a>
<a href="http://linkto.share.com/" class="wb-share">Share on Weibo</a>
<a href="http://linkto.share.com/" data-content="My message" class="wb-share">Share on Weibo</a>
```

```js
gwa.ShareLinks.initFacebook($('a.fb-share'));
gwa.ShareLinks.initTwitter($('a.tw-share'));
gwa.ShareLinks.initWhatsapp($('a.wa-share'));
gwa.ShareLinks.initWeibo($('a.wb-share'));
```

0 comments on commit 5ae4560

Please sign in to comment.