Toggle navigation
Document
Download
Easy Social Buttons
:: jQuery SiteKit
$( link ).easySocialButtons()
DEMO
表示してるページのソーシャルボタンを表示する
http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css jquery.easy-social-buttons.css
../social-info/jquery.social-info.js jquery.easy-social-buttons.js
This Page Social Buttons
$('div.social-btn').easySocialButtons();
指定した URL のソーシャルボタンを表示する
http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css jquery.easy-social-buttons.css
../social-info/jquery.social-info.js jquery.easy-social-buttons.js
Google Social Buttons
$('div.social-btn').easySocialButtons({ url : 'http://www.google.com' });
指定要素の URL 属性値のソーシャルボタンを表示する
http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css jquery.easy-social-buttons.css
../social-info/jquery.social-info.js jquery.easy-social-buttons.js
jQuery 関連記事まとめ - Cyokodog :: Diary
jQuery の位置・サイズ関連メソッドまとめ - Cyokodog :: Diary
IE のレンダリングバージョンの指定と判定方法の自分なりまとめ - CYOKOLOG
$('ul.links li > *').easySocialButtons();
ul.links li{ margin-bottom:32px; }
ソーシャルボタンを任意の場所に表示する
http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css jquery.easy-social-buttons.css
../social-info/jquery.social-info.js jquery.easy-social-buttons.js
jQuery 関連記事まとめ - Cyokodog :: Diary
contents...
jQuery の位置・サイズ関連メソッドまとめ - Cyokodog :: Diary
contents...
IE のレンダリングバージョンの指定と判定方法の自分なりまとめ - CYOKOLOG
contents...
$('div.article h4 a').easySocialButtons({ autoAdd:false, callback : function( api ){ $(this).parent().after(api.getButtons()); } });
div.article h4{ margin-top:32px; border-bottom:solid 1px #ddd; line-height:1.6; }
ブランドカラーを使用せず単色で表示する(Light grey)
http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css jquery.easy-social-buttons.css
../social-info/jquery.social-info.js jquery.easy-social-buttons.js
jQuery 関連記事まとめ - Cyokodog :: Diary
jQuery の位置・サイズ関連メソッドまとめ - Cyokodog :: Diary
IE のレンダリングバージョンの指定と判定方法の自分なりまとめ - CYOKOLOG
$('ul.links a').easySocialButtons({ useBrandColor : false });
ul.links li{ margin-bottom:32px; }
ブランドカラーを使用せず単色で表示する(Dark grey)
http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css jquery.easy-social-buttons.css
../social-info/jquery.social-info.js jquery.easy-social-buttons.js
jQuery 関連記事まとめ - Cyokodog :: Diary
jQuery の位置・サイズ関連メソッドまとめ - Cyokodog :: Diary
IE のレンダリングバージョンの指定と判定方法の自分なりまとめ - CYOKOLOG
$('ul.links a').easySocialButtons({ useBrandColor : false, inverseColor: true });
ul.links li{ margin-bottom:32px; }
一部のボタンを非表示にし、表示順を変更する
http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css jquery.easy-social-buttons.css
../social-info/jquery.social-info.js jquery.easy-social-buttons.js
jQuery 関連記事まとめ - Cyokodog :: Diary
jQuery の位置・サイズ関連メソッドまとめ - Cyokodog :: Diary
IE のレンダリングバージョンの指定と判定方法の自分なりまとめ - CYOKOLOG
$('ul.links a').easySocialButtons({ orders : ['facebook', 'twitter', 'googleplus'] });
ul.links li{ margin-bottom:32px; }
デザインをカスタマイズする(Bootstrap Button Group)
http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css
../social-info/jquery.social-info.js jquery.easy-social-buttons.js
jQuery 関連記事まとめ - Cyokodog :: Diary
contents...
$('h4 a').easySocialButtons({ autoAdd:false, callback : function( api ){ $(this).parent().after(api.getButtons()); }, tempalte : '
' + '
' + '
' + '
' + '
Share
' + '
Search
' + '
' + '
', hatebu : { label : 'Hatebu!' }, twitter : { label : 'Twitter' }, facebook : { label : 'Facebook' }, googleplus : { label : 'Google+', tempalte : '
' + '
' + '
' + '
Share
' + '
Search
' + '
' + '
', } });
.my-custom .btn{ width:100px; }
デザインをカスタマイズする(Bootstrap Color Button)
http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css
../social-info/jquery.social-info.js jquery.easy-social-buttons.js
jQuery 関連記事まとめ - Cyokodog :: Diary
$.esb.hatebu.defaults.label = 'Hatebu!'; $.esb.twitter.defaults.label = 'Twitter'; $.esb.facebook.defaults.label = 'Facebook'; $('h4 a').easySocialButtons({ tempalte : '
' + '
' + '
' + '
', twitter : { tempalte : '
' + '
' + '
' + '
', }, googleplus : { label : 'Google+', tempalte : '
' + '
' + '
' } });
.esb{ margin:16px 16px 0 0; } .esb-label{ width:80px; } .esb-counter{ width:50px; }