<commit_before>Sharer.js
=========

Sharer.js is a very tiny js lib (~1.6kb) to create custom social share components on DOM elements for your website. Sharer.js has no dependencies.
Currently supporting Facebook, Twitter, Google Plus, Linkedin, WhatsApp and Email Message.

# Usage:

## Grab the latest min version and add on your page

```html
<script src="js/sharer.min.js"></script>
```

## Adding share behaviour to a component

### Available Sharer components:

- [Twitter](#twitter)
- [Facebook](#facebook)
- [Google Plus](#google-plus)
- [Email](#email)
- [Whatsapp](#whatsapp)
- [Telegram](#telegram)
- [Viber](#viber)

Simply add the `sharer` class and the attributes above:

- `data-url`: URL you want to share
- `data-title`: Title of the share message (twitter, whatsapp, email, only)
- `data-to`: Email to (Email only)
- `data-subject`: Email subject (Email only)


### Twitter:

Available Data params:

- `data-title`
- `data-url`


```html
<button class="sharer" data-url="http://mywesomeurl.com" data-sharer="twitter" data-title="Checkout my awesome url!"></button>
```

### Facebook:

Available Data params:

- `data-url`

```html
<button class="sharer" data-url="http://mywesomeurl.com" data-sharer="facebook"></button>
```

### Google Plus:

Available Data params:

- `data-url`

```html
<button class="sharer" data-url="http://mywesomeurl.com" data-sharer="googleplus"></button><commit_msg>adding missing linkedin<commit_after>Sharer.js
=========

Sharer.js is a very tiny js lib (~1.6kb) to create custom social share components on DOM elements for your website. Sharer.js has no dependencies.
Currently supporting Facebook, Twitter, Google Plus, Linkedin, WhatsApp and Email Message.

# Usage:

## Grab the latest min version and add on your page

```html
<script src="js/sharer.min.js"></script>
```

## Adding share behaviour to a component

### Available Sharer components:

- [Twitter](#twitter)
- [Facebook](#facebook)
- [Linkedin](#linkedin)
- [Google Plus](#google-plus)
- [Email](#email)
- [Whatsapp](#whatsapp)
- [Telegram](#telegram)
- [Viber](#viber)

Simply add the `sharer` class and the attributes above:

- `data-url`: URL you want to share
- `data-title`: Title of the share message (twitter, whatsapp, email, only)
- `data-to`: Email to (Email only)
- `data-subject`: Email subject (Email only)


### Twitter:

Available Data params:

- `data-title`
- `data-url`


```html
<button class="sharer" data-url="http://mywesomeurl.com" data-sharer="twitter" data-title="Checkout my awesome url!"></button>
```

### Facebook:

Available Data params:

- `data-url`

```html
<button class="sharer" data-url="http://mywesomeurl.com" data-sharer="facebook"></button>
```

### Linkedin:

Available Data params:

- `data-url`

```html
<button class="sharer" data-url="http://mywesomeurl.com" data-sharer="linkedin"></button>
```

### Google Plus:

Available Data params:

- `data-url`

```html
<button class="sharer" data-url="http://mywesomeurl.com" data-sharer="googleplus"></button>
{'fraction_non_alphanumeric': 0.17231075697211157, 'fraction_numerical': 0.0013280212483399733, 'mean_word_length': 4.89628180039139, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4566422', 'n_tokens_mistral': 1052, 'n_tokens_neox': 970, 'n_words': 288}