An open API service indexing awesome lists of open source software.

https://github.com/zoontek/lssb

Lightweight social share buttons
https://github.com/zoontek/lssb

Last synced: 10 days ago
JSON representation

Lightweight social share buttons

Awesome Lists containing this project

README

          

## LSSB (Lightweight social share buttons)

[Demo is available on the Github page.](http://zoontek.github.io/lssb/)

It's a fact: Social share buttons sucks. They request a shitload of css / js, use raster images, and I don't say a word about how difficult is it to align them.
LSSB is heavily inspired by [RRSSB](https://github.com/kni-labs/rrssb) (huge thank to them!), but provide official looking buttons, and doesn't have any requirement (because, you know… lightweight buttons that need jQuery… ugh).
Facebook, Twitter and Google+ are available at this moment.

Did I mention it looks fabulous on high-dpi displays?

## Usage

1) Link to the css file in your head.

```html

```

2) Link to the js file in your footer.

```html

```

3) Add buttons, change data-url attributes values.
*(You have a full working example in the /example folder)*

```html















Tweet









Share









Share

```

## Optionnal attributes

`data-url`
Shared URL.
Default: Page URL

`data-height`
Height of the popup.
Default: 410

`data-width`
Width of the popup.
Default: 580

### For Twitter only

`data-text`
Tweet text.
Default: Page title

`data-hashtags`
Hashtags, separated by a comma.

`data-via`
via @account.

`data-related`
Related accounts, separated by a comma.

## Browser support

IE9+