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
- Host: GitHub
- URL: https://github.com/zoontek/lssb
- Owner: zoontek
- Created: 2014-09-21T23:04:34.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2016-04-19T22:12:13.000Z (about 10 years ago)
- Last Synced: 2026-03-24T19:34:43.286Z (3 months ago)
- Language: JavaScript
- Homepage: http://zoontek.github.io/lssb/
- Size: 36.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
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+