sharete

0.1.2 • Public • Published

Sharete.js

Create your social share buttons easily customizable

js-standard-style

Customize you buttons as you wish, with your CSS code.

Not necessary jQuery 😄

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

  • Facebook
  • Twitter
  • Google+
  • Pinterest
  • Whatsapp

Todo:

  • Linkedin
  • Evernote
  • Reddit
  • Digg
  • Tumblr
  • StumbleUpon

License

The MIT License (MIT)

Copyright (c) 2015 Nicolas Pio

Dependents (0)

Package Sidebar

Install

npm i sharete

Weekly Downloads

1

Version

0.1.2

License

MIT

Unpacked Size

149 kB

Total Files

20

Last publish

Collaborators

  • nicolaspio