cookie-consent-js
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "cookie-consent-js", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "A simple dialog and framework to handle the EU law (as written by EuGH, 1.10.2019 – C-673/17) about cookies in a website.", | ||
@@ -5,0 +5,0 @@ "main": "src/cookie-consent.js", |
# cookie-consent-js | ||
A simple dialog and framework to handle the EU law (as written by EuGH, 1.10.2019 – C-673/17) about cookies | ||
in a website. | ||
A simple dialog and framework to handle the EU law (as written by EuGH, 1.10.2019 – C-673/17) about cookies in a | ||
website. | ||
Existing language files for en, de, oc and tr. If you add one, please make a pull request to have it added here as well, | ||
thanks. | ||
## Features | ||
@@ -10,3 +13,5 @@ | ||
- **cookie-consent-js is responsive**, it works on mobile and desktop devices. | ||
- You can customize cookie-consent-js with its properties, add [translations](https://shaack.com/projekte/cookie-consent-js/examples/cookie-consent-add-translations.html) and change its behaviour. | ||
- You can customize cookie-consent-js with its properties, | ||
add [translations](https://shaack.com/projekte/cookie-consent-js/examples/cookie-consent-add-translations.html) and | ||
change its behaviour. | ||
- Customize **cookie-consent-js** via `css` or `scss` to fit your website. | ||
@@ -29,2 +34,3 @@ | ||
```html | ||
<link rel="stylesheet" href="/node_modules/cookie-consent-js/src/cookie-consent.css"/> | ||
@@ -39,2 +45,3 @@ ``` | ||
```html | ||
<script src="/node_modules/cookie-consent-js/src/cookie-consent.js"></script> | ||
@@ -48,3 +55,6 @@ ``` | ||
```js | ||
var cookieConsent = new CookieConsent({privacyPolicyUrl: "/privacy-policy.html"}) | ||
var cookieConsent = new CookieConsent({ | ||
contentPath: "./cookie-consent-content", // location of the language files | ||
privacyPolicyUrl: "/privacy-policy.html" | ||
}) | ||
``` | ||
@@ -168,4 +178,4 @@ | ||
You can disable `autoShowModal`, for instance, in the privacy policy and legal notice pages to make _these_ pages | ||
better readable. | ||
You can disable `autoShowModal`, for instance, in the privacy policy and legal notice pages to make _these_ pages better | ||
readable. | ||
@@ -184,5 +194,5 @@ ```js | ||
The banner and framework was designed in cooperation with data protection officers and lawyers. However, we can not | ||
The banner and framework was designed in cooperation with data protection officers and lawyers. However, we can not | ||
guarantee whether the banner is correct for your website and assume no liability for its use. | ||
cookie-consent-js is a project of [shaack.com](https://shaack.com). |
62601
22
368
193