novicell-cookie-info
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "novicell-cookie-info", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Cookie information dialog used to show a short text about, the use of cookies for the website, due to european laws.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -21,9 +21,11 @@ # Novicell Cookie Info | ||
<button class="cookie-info-open" id="js-cookie-info-open"> | ||
Cookies? | ||
Cookies? | ||
</button> | ||
<section class="cookie-info" id="js-cookie-info"> | ||
<div class="cookie-info__content"> | ||
<p class="cookie-info__text">We're using cookies on this website, is that OK with you?</p> | ||
<button class="cookie-info__close button" id="js-cookie-info-close">Fine with me :)</button> | ||
</div> | ||
<div class="cookie-info__content"> | ||
<button class="cookie-info__close" id="js-cookie-info-close">×</button> | ||
<p class="cookie-info__text">We're using cookies on this website, is that OK with you?</p> | ||
<button class="cookie-info__accept button" id="js-cookie-info-accept">Fine with me :)</button> | ||
<button class="cookie-info__decline button" id="js-cookie-info-decline">Me no likie :(</button> | ||
</div> | ||
</section> | ||
@@ -56,2 +58,10 @@ ``` | ||
## Withdraw consent | ||
If you need to withdraw the cookie consent, you can call the `declineCookieInfo` like this: | ||
```html | ||
<span onclick="novicell.cookieInfo.declineCookieInfo()">Withdraw your consent of cookies, on this webpage</span> | ||
``` | ||
## Extension | ||
@@ -58,0 +68,0 @@ |
Sorry, the diff of this file is not supported yet
14703
106