cookieyesno
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "cookieyesno", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"main": "src/cookieyesno.js", | ||
"scripts": { | ||
"build": "python3 compile.py" | ||
}, | ||
"repository": { | ||
@@ -9,3 +12,4 @@ "type": "git", | ||
}, | ||
"license": "BSD 3-Clause" | ||
"license": "BSD 3-Clause", | ||
"keywords": ["cookie", "cookies", "browser", "banner", "privacy", "policy", "consent", "legal"] | ||
} |
# cookieyesno | ||
Easy to use GDPR-complient cookie-banner | ||
Take a look at it in action on a real site: https://watchaccuracy.com/ | ||
## Usage | ||
```js | ||
// using packages | ||
import CookieYesNo from 'cookieyesno'; | ||
// or simply include the dist/cookieyesno.min.js file in the html | ||
const cyn = new CookieYesNo({ | ||
@@ -43,1 +49,10 @@ text: 'This website uses cookies. You can select below which cookies will be stored on your device.', | ||
``` | ||
## Modify the banner | ||
It's pretty simple: just use CSS-rules. | ||
The following classes are available: | ||
* `.cyn-banner`: main banner element | ||
* `.cyn-categories`: table containing the different cookie categories | ||
* `.cyn-btn-save`: save settings button | ||
* `.cyn-btn-accept-all`: accept all button |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13870
7
223
58