Recommend this page to a friend! |
Classes of Ovidiu Bokar | Social Media Sharing | Readme.md | Download |
|
|
Download
![](https://www.jsdelivr.com/package/npm/js-sharing-buttons) :warning: New VersionIn the next few months we are looking to optimise the small library and extended. Feel free to join our discussion https://github.com/bovidiu/js-sharing-buttons/discussions and let us know your oppinion or just introduce yourself. Social Media Sharing ButtonsSocial media buttons to share your page to social media; The current library of social media list includes: * Facebook * Twitter * LinkedIn * Pinterest * Google * Digg * Tumblr * Reddit * VKontakte * Delicious * Gmail * Blogger * Amazon * Bitly InstallYou can use composer to install it Or implement it manually by adding the script in the footer of the pagelike:
or use the CDN
SRI CDN
ConfigureScriptAfter adding the above script, right after add:
It shoould look like similar to this:
HTMLAdd any where in the page a div or any HTML element with a class called
Custom settingsThe library supports multiple instances in a page as well as custom configurations. Change target element classWhen the library get initialize include a
Activate/Deactivate buttonsBy default the library will show Facebook and Twitter links, however you can enable/disable all icons. Example: Activate LinkedIn button
Deactivate Facebook button
|