🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

The C Share jQuery plugin lets you dynamically generate social share buttons from popular social networks to increase social media engagement.

social-share social-button

Documentation

jQuery plugin - C Share buttons

npm version

A share to community buttons.

Example

https://ycs77.github.io/jquery-plugin-c-share/

Getting started

Must introduce jQuery 3, Font Awesome 5.

Installation

$ npm install jquery-plugin-c-share 

or

$ yarn add jquery-plugin-c-share 

In browser:

<link  href="/path/to/fontawesome-5.css" rel="stylesheet"><!-- Font Awesome 5 is required -->  <script src="/path/to/jquery.slim.js"></script><!-- jQuery is required --> <script src="/path/to/jquery.c-share.js"></script>

Usage

<div id="shareBlock"></div>
$('#shareBlock').cShare({   description: 'jQuery plugin - C Share buttons...',   showButtons: [     'fb',     'gPlus',     'line'   ] });

Options

description

  • Type: String
  • Default: ''

Define the share content texts.

showButtons

  • Type: String
  • Default: Modal title

Define the show buttons.

data

Define the share buttons data.

spacing

  • Type: Number
  • Default: 6

Define the spacing.

shareToText

  • Type: String
  • Default: Share to

Define the "Share to" text.


You May Also Like