jQuery Sharrre Plugin

制作分享小部件 Sharrre 是一个 jQuery 插件,可让您为 Facebook、Twitter、Google Plus(使用 PHP 脚本)等创建漂亮的分享小部件。「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.」

Github星跟蹤圖

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
  • Facebook
  • Google+
  • LinkedIn
  • Pinterest
  • Stumbleupon
  • Twitter Share + Follow (See counter alternatives)
  • Reddit
  • 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

主要指標

概覽
名稱與所有者Julienh/Sharrre
主編程語言JavaScript
編程語言JavaScript (語言數: 4)
平台
許可證MIT License
所有者活动
創建於2011-11-23 16:50:49
推送於2018-02-20 15:19:25
最后一次提交2018-02-20 16:19:24
發布數3
最新版本名稱2.0.1 (發布於 )
第一版名稱1.3.5 (發布於 )
用户参与
星數1k
關注者數54
派生數405
提交數87
已啟用問題?
問題數250
打開的問題數150
拉請求數20
打開的拉請求數10
關閉的拉請求數26
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?