cookie-consent-js
Advanced tools
Comparing version 1.1.8 to 1.1.9
{ | ||
"name": "cookie-consent-js", | ||
"version": "1.1.8", | ||
"version": "1.1.9", | ||
"description": "A simple dialog and framework to handle the German and EU law (may 2020) about cookies in a website", | ||
@@ -5,0 +5,0 @@ "main": "src/cookie-consent.js", |
@@ -25,7 +25,8 @@ # cookie-consent-js | ||
### Reset cookie settings | ||
### Show the settings dialog again | ||
```js | ||
cookieConsent.reset() | ||
``` | ||
Use this to allow the user to reconfigure the cookie settings, for example in your service navigation as "cookie settings". | ||
Use this to allow the user to reconfigure the cookie settings, for example, in your | ||
service navigation as "cookie settings". | ||
@@ -37,6 +38,6 @@ ### Read the status | ||
Use this function to disable tracking. | ||
Suround for example the Analytics code with | ||
Suround tracking code, like the Google Analytics code with | ||
```js | ||
if(cookieConsent.isTrackingCookieAllowed()) { | ||
// Google Analytics code and other tracking code | ||
// Google Analytics code and/or other tracking code | ||
} | ||
@@ -82,3 +83,3 @@ ``` | ||
#### Disable autoShow | ||
You should disable `autoShowModal` in the privacy policy page to make this page readable. | ||
You should disable `autoShowModal` in the privacy policy page to make that page readable. | ||
```js | ||
@@ -85,0 +86,0 @@ var cookieConsent = new CookieConsent({linkPrivacyPolicy: "privacy-policy.html", autoShowModal: false}) |
18386
89