The share to community buttons.
https://ycs77.github.io/jquery-plugin-c-share/
Must introduce jQuery 3, Font Awesome 5.
$ 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>
<div id="shareBlock"></div>
$('#shareBlock').cShare({
description: 'jQuery plugin - C Share buttons...',
showButtons: ['line', 'fb', 'twitter']
});
- Type:
String
- Default:
''
Define the share content texts.
- Type:
Array
- Default:
['line', 'fb', 'twitter']
Define the show buttons. Can use values: fb
, line
, plurk
, weibo
, twitter
, tumblr
, email
.
- Type:
Object
- Default: Source code
Define the share buttons data.
- Type:
Number
- Default:
6
Define the spacing.
- Type:
String
- Default:
Share to
Define the "Share to" text.
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.