Skip to content

cookieBAR is a free & easy solution to the EU cookie law.

License

Notifications You must be signed in to change notification settings

dskarasev/cookie-bar

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cookieBAR

cookieBAR is a free & easy solution to the EU cookie law.

Why use cookieBAR?

There is a lot of mystery and fuss surrounding the new EU cookie legislation, but it's essentially really simple. Cookies are files used to track site activity and most websites use them. Site owners need to make the use of cookies very obvious to visitors.

Cookie bar makes it simple and clear to visitors that cookies are in use and tells them how to adjust browser settings if they are concerned.

TL;DR

Just place this somewhere in your website and forget it:

https://cdn.jsdelivr.net/npm/cookie-bar/cookiebar-latest.min.js
DEMO AND CONFIGURATION

Everyone wants to see a demo before downloading something, isn't it? You can see a demo on cookie-bar.eu. You can even use the configuration wizard to make the bar more compliant to your needs.

How it works?

cookieBAR is a drop-in and forget, pure vanilla javascript plugin, with no jQuery nor any other dependency needed. It shows up when needed and stay silent when not: if a website has a cookie or some localStorage data set then the bar is shown, otherwhise nothing happens.

Once user clicks Allow Cookies cookieBAR will set a cookie for that domain with a name cookiebar that will expire in 30 days. What this means is that the plugin will only show up once month (this duration is configurable).

If a user decides to click Disallow Cookies, cookieBAR will simply remove all cookies and localStorage data (and will show up again the first time a cookie is detected).

Having a cookiebar cookie makes it simple to developers to check the user decision before activating external scripts (such as Google Analytics, or anything else). See http://cookie-bar.eu for more informations.

About

cookieBAR is a free & easy solution to the EU cookie law.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 58.8%
  • CSS 26.6%
  • JavaScript 14.6%