sharrre

WebJar for sharrre

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

sharrre
Последняя версия

Последняя версия

2.0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

sharrre
WebJar for sharrre
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/Julienh/Sharrre

Скачать sharrre

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/sharrre/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>sharrre</artifactId>
    <version>2.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/sharrre/
implementation 'org.webjars.npm:sharrre:2.0.1'
// https://jarcasting.com/artifacts/org.webjars.npm/sharrre/
implementation ("org.webjars.npm:sharrre:2.0.1")
'org.webjars.npm:sharrre:jar:2.0.1'
<dependency org="org.webjars.npm" name="sharrre" rev="2.0.1">
  <artifact name="sharrre" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='sharrre', version='2.0.1')
)
libraryDependencies += "org.webjars.npm" % "sharrre" % "2.0.1"
[org.webjars.npm/sharrre "2.0.1"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

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

Версии библиотеки

Версия
2.0.1