jQuery
【jQuery】ソーシャルボタンとソーシャルシェアカウンターjumboShare
December 5, 2015

jumboShareはjQueryのソーシャルボタンとソーシャルシェアカウンターを実装するプラグインです。
ソーシャルボタンにはTwitter、Facebook、Google+、LinkedInが準備されているようです。
<!DOCTYPE html> <html> <head> <title>jumboShare - Social Share Buttons with counter</title> <link rel="stylesheet" href="assets/css/jumboShare.css"/> </head> <body> <div id="jumboShare"></div> <script type="text/javascript" src="http://code.jquery.com/jquery-2.1.4.min.js"></script> <script type="text/javascript" src="assets/js/jumboShare.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#jumboShare").jumboShare({ //URL to share and count social shares url : window.location.href, //Replace mycodingtricks to your twitter username twitterUsername: "mycodingtricks" //Text to share on social media text: document.title, //Append or Prepend position: 'append' }); }); </script> </body> </html>
$("#jumboShare").jumboShare({ url : window.location.href, //URL to share and count social shares twitterUsername: "mycodingtricks" //Replace mycodingtricks to your twitter username text: docuement.title, //Text to share on social media position: 'append' //Append or Prepend });
Demo/Download