Julienh/Sharrre
关于
创建你的分享小工具!Sharrre 是一个 jQuery 插件,可用于创建适用于 Facebook、Twitter、Google Plus(带 PHP 脚本)等平台的精美分享小工具。
其他项目实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 0
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文jQuery Sharrre Plugin
Make your sharing widget! Sharrre is a jQuery plugin that allows you to create nice widgets sharing for Facebook, Twitter, Google Plus (with PHP script) and more. More information on Sharrre
Supported platforms
- Delicious
- Google+
- Stumbleupon
- Twitter Share + Follow (See counter alternatives)
- Tumblr
Installing
You can use the jquery.sharrre.min.js file, all platforms are included in it.
If you want a smaller file and only use a limited number of social network, you can use these files from the src/js folder :
- jquery.sharre.js
- platform/platform.js
After that you can choose which platform you need and load them in your project.
Usage
$('#sharrre').sharrre({
share: {
googlePlus: true,
facebook: true,
twitter: true
},
url: 'http://sharrre.com'
});
Example
HTML
<div id="demo1" data-title="sharrre" data-url="http://sharrre.com" ></div>
JS
$(document).ready(function(){
$('#demo1').sharrre({
share: {
googlePlus: true,
facebook: true,
twitter: true,
delicious: true
},
buttons: {
googlePlus: {size: 'tall'},
facebook: {layout: 'box_count'},
twitter: {count: 'vertical'},
delicious: {size: 'tall'}
},
hover: function(api, options){
$(api.element).find('.buttons').show();
},
hide: function(api, options){
$(api.element).find('.buttons').hide();
}
});
});
See example on official website
Dependencies
- jQuery 1.7
- Registration at OpenShareCount is mandatory if you want to get Twitter share counts via OpenShareCount (now that Twitter is no longer providing them)
Author
Contributing
Any help is welcome, if you want some infos on how contribute, see the CONTRIBUTORS.md file.
License
The project is distributed under the MIT License
探索相关项目
加载中…