1.2.2 • Published 5 months ago

jquery-plugin-c-share v1.2.2

Weekly downloads
3
License
MIT
Repository
github
Last release
5 months ago

jQuery plugin - C Share buttons

npm version

The share to community buttons.

Vue version

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: ['line', 'fb', 'twitter']
});

Options

description

  • Type: String
  • Default: ''

Define the share content texts.

showButtons

  • Type: Array
  • Default: ['line', 'fb', 'twitter']

Define the show buttons. Can use values: fb, line, plurk, weibo, twitter, tumblr, email.

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.

Sponsor

If you think this package has helped you, please consider Becoming a sponsor to support my work~ and your avatar will be visible on my major projects.

License

MIT LICENSE

1.2.2

5 months ago

1.2.0

5 years ago

1.1.0

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago