cookie-consent-js
Advanced tools
Comparing version 2.0.2 to 2.0.3
{ | ||
"name": "cookie-consent-js", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"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", |
@@ -52,3 +52,3 @@ # cookie-consent-js | ||
```js | ||
var cookieConsent = new CookieConsent({ | ||
const cookieConsent = new CookieConsent({ | ||
contentUrl: "./cookie-consent-content", // location of the language files | ||
@@ -141,11 +141,11 @@ privacyPolicyUrl: "/privacy-policy.html" | ||
buttonSecondaryClass: "btn btn-secondary", // the "accept necessary" buttons class, only used for styling | ||
privacyPolicyUrl: "privacy-policy.html", | ||
autoShowModal: true, // disable autoShowModal on the privacy policy page, to make that page readable | ||
blockAccess: false, // set "true" to block the access to the website before choosing a cookie configuration | ||
position: "right", // position ("left" or "right"), if blockAccess is false | ||
postSelectionCallback: undefined, // callback, after the user has made his selection | ||
postSelectionCallback: undefined, // callback, after the user has made a selection | ||
lang: navigator.language, // the language, in which the dialog is shown | ||
defaultLang: "en", // default language, if the `lang` is not available as translation in `cookie-consent-content` | ||
content: [], // deprecated, we now have a `content` folder, which contains the language files | ||
contentUrl: "./cookie-consent-content", // the url of the "cookie-consent-content" folder | ||
contentUrl: "./cookie-consent-content", // the url of the "cookie-consent-content" folder, which contains the language files | ||
privacyPolicyUrl: "privacy-policy.html", | ||
cookieName: "cookie-consent-tracking-allowed", // the name of the cookie, the cookie is `true` if tracking was accepted | ||
@@ -162,3 +162,3 @@ modalId: "cookieConsentModal" // the id of the modal dialog element | ||
```js | ||
var cookieConsent = new CookieConsent({linkPrivacyPolicy: "privacy-policy.html", autoShowModal: false}) | ||
var cookieConsent = new CookieConsent({autoShowModal: false, privacyPolicyUrl: "privacy-policy.html", contentUrl: "./cookie-consent-content"}) | ||
``` | ||
@@ -165,0 +165,0 @@ |
@@ -15,11 +15,11 @@ /** | ||
buttonSecondaryClass: "btn btn-secondary", // the "accept necessary" buttons class, only used for styling | ||
privacyPolicyUrl: "privacy-policy.html", | ||
autoShowModal: true, // disable autoShowModal on the privacy policy page, to make that page readable | ||
blockAccess: false, // set "true" to block the access to the website before choosing a cookie configuration | ||
position: "right", // position ("left" or "right"), if blockAccess is false | ||
postSelectionCallback: undefined, // callback, after the user has made his selection | ||
postSelectionCallback: undefined, // callback, after the user has made a selection | ||
lang: navigator.language, // the language, in which the dialog is shown | ||
defaultLang: "en", // default language, if the `lang` is not available as translation in `cookie-consent-content` | ||
content: [], // deprecated, we now have a `content` folder, which contains the language files | ||
contentUrl: "./cookie-consent-content", // the url of the "cookie-consent-content" folder | ||
contentUrl: "./cookie-consent-content", // the url of the "cookie-consent-content" folder, which contains the language files | ||
privacyPolicyUrl: "privacy-policy.html", | ||
cookieName: "cookie-consent-tracking-allowed", // the name of the cookie, the cookie is `true` if tracking was accepted | ||
@@ -26,0 +26,0 @@ modalId: "cookieConsentModal" // the id of the modal dialog element |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
24
398
58169