<commit_before># A widget to display your shared items on any webpage

1. Create a configuration file `config.js` as a copy of `config.js.template`.
   In `config.js`, set the URL at which your tt-rss instance is reachable in the variable `ttrss_url`.

2. Put this directory on your webserver:<br/>
   Within the folder of your tt-rss instance, first create a folder called 'grittt' (if you have not got it already) and copy the 'shared-widget' folder in there.

3. Install the widget on a webpage of yours by calling it via Javascript:<br/>
   The HTML-document, on which the widget should appear, needs to execute the javascript in `dialog.js` when loading.
   It needs to pass to `dialog.js` the address of your public tt-rss feed and the ID of an element somewhere on your page, into which the resulting HTML will be inserted once the page is loaded. You can also pass a restriction on the number of items shown (default is 8, I think tt-rss returns up to 30). More info inside of `widget.js`.
   You can also look into `example.html` to see an example of what you have to do.

<commit_msg>memtion possibility to style widget<commit_after># A widget to display your shared items on any webpage

1. Create a configuration file `config.js` as a copy of `config.js.template`.
   In `config.js`, set the URL at which your tt-rss instance is reachable in the variable `ttrss_url`.

2. Put this directory on your webserver:<br/>
   Within the folder of your tt-rss instance, first create a folder called 'grittt' (if you have not got it already) and copy the 'shared-widget' folder in there.
   Note: To style your widget, you can create a stylesheet called `widget.css`
   in that folder, which will be applied.

3. Install the widget on a webpage of yours by calling it via Javascript:<br/>
   The HTML-document, on which the widget should appear, needs to execute the javascript in `dialog.js` when loading.
   It needs to pass to `dialog.js` the address of your public tt-rss feed and the ID of an element somewhere on your page, into which the resulting HTML will be inserted once the page is loaded. You can also pass a restriction on the number of items shown (default is 8, I think tt-rss returns up to 30). More info inside of `widget.js`.
   You can also look into `example.html` to see an example of what you have to do.

{'fraction_non_alphanumeric': 0.06051502145922747, 'fraction_numerical': 0.005150214592274678, 'mean_word_length': 3.786447638603696, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '6852157', 'n_tokens_mistral': 632, 'n_tokens_neox': 612, 'n_words': 387}