sharete
v0.1.2
Published
Create your social share buttons easily customizable
Readme
Sharete.js
Create your social share buttons easily customizable
Customize you buttons as you wish, with your CSS code.
Not necessary jQuery :smile:
Usage
First add Sharete in your HTML
<script async src="sharete.js"></script>Simple method:
Sharete('.bt--facebook').facebook({ appId: '123456789' });
Sharete('.bt--twitter').twitter();
Sharete('.bt--gplus').gplus();
Sharete('.bt--pinterest').pinterest();
Sharete('.bt--whatsapp').whatsapp();Complete method:
API with all possible data so far customizable
// Twitter
Sharete('.bt--twitter').twitter({
text: 'Sharete.js is very simple to use',
hashtags: 'JavaScript, OpenSource', // Separate by comma and without '#'
via: 'NicolasPio', // Mention a user
url: 'http://www.example.com' // Url custom
});Supported social networks
Did not find social network what you need? Create a issue
- [x] Facebook
- [x] Twitter
- [x] Google+
- [x] Pinterest
- [x] Whatsapp
Todo:
- [ ] Evernote
- [ ] Digg
- [ ] Tumblr
- [ ] StumbleUpon
License
The MIT License (MIT)
Copyright (c) 2015 Nicolas Pio
