All Projects β†’ caiojhonny β†’ Simple Cookie Choices

caiojhonny / Simple Cookie Choices

A simple cookie choices thought to the GDPR rules πŸ”’πŸͺ

Projects that are alternatives of or similar to Simple Cookie Choices

silverstripe-cookie-consent
GDPR compliant cookie popup and consent checker
Stars: ✭ 16 (+33.33%)
Mutual labels:  cookie, gdpr
privera
Use the tools you know. Respect users' privacy. Forget cookie consents. Comply with GDPR, ePrivacy, COPPA, CalOPPA, PECR, PIPEDA, CASL; you name it.
Stars: ✭ 23 (+91.67%)
Mutual labels:  cookie, gdpr
Ngx Cookieconsent
Cookie πŸͺ Consent module for Angular.
Stars: ✭ 120 (+900%)
Mutual labels:  law, cookie
gdpr-cookie
Php Cookie checker for Analytics and Tawk.To (GDPR Compliance)
Stars: ✭ 21 (+75%)
Mutual labels:  cookie, gdpr
Klaro
Klaro! A privacy and security tool for your website.
Stars: ✭ 640 (+5233.33%)
Mutual labels:  gdpr, cookie
react-cookie-law
React Cookie Law is a cookie-info banner compliance with the GDPR and the EU cookie law. It allows the user to give consent in a granular way.
Stars: ✭ 103 (+758.33%)
Mutual labels:  cookie, gdpr
Cookiescanner
Cookie Scanner for GDPR compliance
Stars: ✭ 126 (+950%)
Mutual labels:  gdpr, cookie
PolishCookieConsent
Polish Cookie Consent is an extension, which automatically accepts privacy policy/GDPR on websites.
Stars: ✭ 17 (+41.67%)
Mutual labels:  cookie, gdpr
javascript-cookie-control
Javascript module for controling cookie consent on your website
Stars: ✭ 18 (+50%)
Mutual labels:  cookie, gdpr
Cookies Eu Banner
1kb vanilla JS script which manages cookies consent banner display like asked by GDPR
Stars: ✭ 326 (+2616.67%)
Mutual labels:  gdpr, cookie
Pythonspidernotes
Pythonε…₯ι—¨η½‘η»œηˆ¬θ™«δΉ‹η²ΎεŽη‰ˆ
Stars: ✭ 5,634 (+46850%)
Mutual labels:  cookie
Yett
πŸ”A small webpage library to control the execution of (third party) scripts
Stars: ✭ 615 (+5025%)
Mutual labels:  gdpr
Silhouette
Silhouette is a framework agnostic authentication library for Scala that supports several authentication methods, including OAuth2, OpenID Connect, Credentials, Basic Authentication or custom authentication schemes.
Stars: ✭ 18 (+50%)
Mutual labels:  cookie
Cookie Session
Simple cookie-based session middleware
Stars: ✭ 928 (+7633.33%)
Mutual labels:  cookie
Comply
Compliance automation framework, focused on SOC2
Stars: ✭ 596 (+4866.67%)
Mutual labels:  gdpr
Laravel Cookie Consent
Make your Laravel app comply with the crazy EU cookie law
Stars: ✭ 895 (+7358.33%)
Mutual labels:  cookie
Gdpr rails
Rails Engine for the GDPR compliance
Stars: ✭ 580 (+4733.33%)
Mutual labels:  gdpr
Universal Starter
Angular 9 Universal repo with many features
Stars: ✭ 518 (+4216.67%)
Mutual labels:  cookie
Securecookie
Package gorilla/securecookie encodes and decodes authenticated and optionally encrypted cookie values for Go web applications.
Stars: ✭ 507 (+4125%)
Mutual labels:  cookie
Cookie
HTTP server cookie parsing and serialization
Stars: ✭ 848 (+6966.67%)
Mutual labels:  cookie

Simple Cookie Choices

Javascript only. Just 3.3kb gzipped.

This plugin helps you to create a banner or dialog box for accepting or denying the terms based on the GDPR rules.

Demo

Consent Bar

Consent Dialog

Setup

Include the script into your site

<script src="simple-cookie-choices.min.js"></script>

Usage

To use a Consent Bar

SimpleCookieChoices.showCookieConsentBar('This site uses cookies to offer you a better browsing expirience.', 'Find out more on how we use cookies and how you can change your settings', '/cookie-policy.html', 'I accept cookies', 'I refuse cookies');

To use a Dialog Bar

SimpleCookieChoices.showCookieConsentDialog('This site uses cookies to offer you a better browsing expirience.', 'Find out more on how we use cookies and how you can change your settings', '/cookie-policy.html', 'I accept cookies', 'I refuse cookies');

Parameters

Necessary parameters for the initialization of the plugin:

cookieText Brief descriptive text about your privacy policy

linkText(optional) Short text with link. It can be linked to your privacy page.

linkHref(optional) Link to your linkText

acceptBtnTitle Title from your accept button

rejectBtnTitle Title from your reject button

Functions

SimpleCookieChoices.consentAccepted() Returns a boolean value if consensus was accepted

SimpleCookieChoices.setAccept() Action to accept the terms

SimpleCookieChoices.setReject() Action to reject the terms

SimpleCookieChoices.eraseCookies() Clear the plugin cookies

SimpleCookieChoices.showCookieConsentBar() To init a Consent Bar (params required)

SimpleCookieChoices.showCookieConsentDialog() To init a Dialog Bar (params required)

Events

cookiechoicestatechanged You can see if the user has changed option

window.addEventListener('cookiechoicestatechanged', function (e) {
  console.log('Choice state changed', e.detail.state);
});

License

MIT

[top]

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].