Skip to content

Commit

Permalink
Merge pull request #200 from orestbida/v2.8
Browse files Browse the repository at this point in the history
v2.8
  • Loading branch information
orestbida authored Jan 15, 2022
2 parents b04e0d4 + 53b5011 commit 69bddf8
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 49 deletions.
18 changes: 9 additions & 9 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ A __lightweight__ & __gdpr compliant__ cookie consent plugin written in plain ja

```bash
# CDN links
https://cdn.jsdelivr.net/gh/orestbida/cookieconsent@v2.7.2/dist/cookieconsent.js
https://cdn.jsdelivr.net/gh/orestbida/cookieconsent@v2.7.2/dist/cookieconsent.css
https://cdn.jsdelivr.net/gh/orestbida/cookieconsent@v2.8.0/dist/cookieconsent.js
https://cdn.jsdelivr.net/gh/orestbida/cookieconsent@v2.8.0/dist/cookieconsent.css
```

Thanks to [Till Sanders](https://github.com/tillsanders) for bringing the plugin on npm.
Expand Down Expand Up @@ -73,7 +73,7 @@ A __lightweight__ & __gdpr compliant__ cookie consent plugin written in plain ja
<p>

- Create a `.js` file (e.g. `cookieconsent-init.js`) and import it in your html page

```html
<body>
<!-- body content ... -->
Expand All @@ -83,7 +83,7 @@ A __lightweight__ & __gdpr compliant__ cookie consent plugin written in plain ja
```

- Configure the plugin inside `cookieconsent-init.js`

```javascript
// obtain plugin
var cc = initCookieConsent();
Expand Down Expand Up @@ -215,7 +215,7 @@ A __lightweight__ & __gdpr compliant__ cookie consent plugin written in plain ja
<!-- Inline script -->
<script>
window.addEventListener('load', function(){
// obtain plugin
var cc = initCookieConsent();
Expand Down Expand Up @@ -389,7 +389,7 @@ You can manage any script (inline or external) via the `page_scripts` option:
</script>
```
<i>Note: `data-cookiecategory` must be a valid category defined inside the configuration object</i>


## API methods
After getting the plugin like so:
Expand Down Expand Up @@ -586,7 +586,7 @@ Additional methods for an easier management of your scripts and cookie settings
<p>
This method allows the plugin to manage dynamically added/injected scripts that have been loaded after the plugin's execution.
E.g. dynamic content generated by server side languages like php, node, ruby ...
</p>
</details>
Expand Down Expand Up @@ -1191,7 +1191,7 @@ Note:
- <details><summary>How to use in React</summary>
<p>
1. Create a new component: `CookieConsent.js`
1. Create a new component: `CookieConsent.js`
```javascript
import { useEffect } from "react";
Expand Down Expand Up @@ -1222,7 +1222,7 @@ Note:
return (
<div className="App">
<h1>Hello World</h1>
<CookieConsent/>
</div>
);
Expand Down
Loading

0 comments on commit 69bddf8

Please sign in to comment.