Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 75825c1

Browse files
committedSep 5, 2021
Cleanup and create new version
1 parent fd020b4 commit 75825c1

File tree

5 files changed

+16
-12
lines changed

5 files changed

+16
-12
lines changed
 

‎README.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Simple, powerful, customizable and super lightweight (1 Kb Gzip) social buttons
1616

1717
## Install
1818

19-
NPM:
19+
### Available in NPM
2020

2121
```sh
2222
npm i share-buttons
@@ -28,6 +28,12 @@ include `share-buttons.js` in the end of page:
2828
<script src="<path>/dist/share-buttons.js"></script>
2929
```
3030

31+
### Getting the library from CDN
32+
33+
```html
34+
<script src="//cdn.jsdelivr.net/npm/share-buttons/dist/share-buttons.js"></script>
35+
```
36+
3137
Paste this HTML on the page:
3238

3339
``` html
@@ -113,4 +119,4 @@ You can also use [simple-icons](https://github.com/simple-icons/simple-icons).
113119

114120
----
115121

116-
&copy; 2015 - 2020 Yauheni Pakala
122+
&copy; 2015+ Yauheni Pakala and [contributors](https://github.com/wcoder/share-buttons/graphs/contributors) | MIT

‎dist/share-buttons.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package-lock.json

+3-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "share-buttons",
3-
"version": "1.7.0",
3+
"version": "1.8.0",
44
"description": "Simple social buttons for your site.",
55
"directories": {
66
"example": "example"

‎src/share-buttons.js

+3-6
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99

1010
/**
1111
* Class to display the buttons of social networks.
12-
*
13-
* @author Yauheni Pakala <https://wcoder.github.io>
14-
* @version 1.6
15-
* @license MIT
1612
*/
1713
function ShareButtons() {
1814

@@ -140,12 +136,13 @@
140136
* Counter for generated cache's share button's index.
141137
* This to reference added share buttons' listeners.
142138
*/
143-
var refCounter = 0
139+
var refCounter = 0;
140+
144141
/**
145142
* List of added listeners' for share buttons.
146143
* This to index listeners' for update or removal purpose.
147144
*/
148-
var listenersCache = {}
145+
var listenersCache = {};
149146

150147
/**
151148
* Method for detaching event to the element

0 commit comments

Comments
 (0)
Please sign in to comment.