<commit_before># FBplus.badge
Alternative facebook badge for pages.

## Caution!
Do not use the library on a live site. The library does not work properly. It is a consequence of changes in the facebook policy.

## Screenshots
![alt text](https://raw.githubusercontent.com/shtange/fbplus/master/screend.jpg "FBplus.badge screenshots (dark theme)")

## Using
Insert before the closing tag *head*:
```
<!-- Include widget styles -->
<link rel="stylesheet" href="css/fbplus.badge.css">
```
Insert widget code on your page:
```
<!-- Place this tag where you want the widget to render -->
<div id="FBplusBadge" data-width="240" data-href="https://facebook.com/{page name}" data-rel="page" data-theme="light" data-lang="en"></div>

<!-- Place this tag after the last widget tag -->
<script type="text/javascript">
  (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'js/fbplus.badge.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  })();
</script>
```
*See [demo](https://github.com/shtange/fbplus/tree/master/demo) as example.*

## Options
Options can be passed as a data attributes.


| Name | Type |	Default |	Description |
| ---- |:----:|:-------:|:----------- |
| data-width | string | 240px | value in the range of 160 - 420 pixels |
| data-href | string | --- | you can use full link on page or only name |
| data-rel | string | page | currently widget is relevant only for facebook pages |
| data-theme | string | light | accepts: 'light' or 'dark' |
| data-lang | string | en | available values: 'en', 'de', 'fr', 'it', 'es', 'pt', 'ru', 'ua' |

#### Languages
__NOTE:__ this list related to data attribute 'data-lang'.

| Abbr | Language |
| ---- |:----------- |
| en | English |
| de | German |
| fr | French |
| it | Italian |
| es | Spanish |
| pt | Portuguese |
| ru | Russian |
| ua | Ukrainian |

## Supported browsers
Google Chrome, Firefox, Safari, Opera, Internet Explorer 8+

## Demo
Demo version here [shtange.github.io/fbplus](http://shtange.github.io/fbplus/)

## Publications
Review on Habr https://habrahabr.ru/post/249973/ (russian language)

## License
Released under the [MIT License](http://www.opensource.org/licenses/mit-license.php)<commit_msg>Update publications list on the readme<commit_after># FBplus.badge
Alternative facebook badge for pages.

## Caution!
Do not use the library on a live site. The library does not work properly. It is a consequence of changes in the facebook policy.

## Screenshots
![alt text](https://raw.githubusercontent.com/shtange/fbplus/master/screend.jpg "FBplus.badge screenshots (dark theme)")

## Using
Insert before the closing tag *head*:
```
<!-- Include widget styles -->
<link rel="stylesheet" href="css/fbplus.badge.css">
```
Insert widget code on your page:
```
<!-- Place this tag where you want the widget to render -->
<div id="FBplusBadge" data-width="240" data-href="https://facebook.com/{page name}" data-rel="page" data-theme="light" data-lang="en"></div>

<!-- Place this tag after the last widget tag -->
<script type="text/javascript">
  (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'js/fbplus.badge.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  })();
</script>
```
*See [demo](https://github.com/shtange/fbplus/tree/master/demo) as example.*

## Options
Options can be passed as a data attributes.


| Name | Type |	Default |	Description |
| ---- |:----:|:-------:|:----------- |
| data-width | string | 240px | value in the range of 160 - 420 pixels |
| data-href | string | --- | you can use full link on page or only name |
| data-rel | string | page | currently widget is relevant only for facebook pages |
| data-theme | string | light | accepts: 'light' or 'dark' |
| data-lang | string | en | available values: 'en', 'de', 'fr', 'it', 'es', 'pt', 'ru', 'ua' |

#### Languages
__NOTE:__ this list related to data attribute 'data-lang'.

| Abbr | Language |
| ---- |:----------- |
| en | English |
| de | German |
| fr | French |
| it | Italian |
| es | Spanish |
| pt | Portuguese |
| ru | Russian |
| ua | Ukrainian |

## Supported browsers
Google Chrome, Firefox, Safari, Opera, Internet Explorer 8+

## Demo
Demo version here [shtange.github.io/fbplus](http://shtange.github.io/fbplus/)

## Publications
Review on [Habrahabr](https://habrahabr.ru/post/249973/) (russian language)

## License
Released under the [MIT License](http://www.opensource.org/licenses/mit-license.php)
{'fraction_non_alphanumeric': 0.1757431113039705, 'fraction_numerical': 0.008678672163159037, 'mean_word_length': 3.6992864424057084, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 8, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1610582', 'n_tokens_mistral': 1518, 'n_tokens_neox': 1438, 'n_words': 461}