Permission Bar is a free & simple solution to the EU cookie law.
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.
Permission 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.
- Information Commissioner's Office - Guidance on the rules on use of cookies and similar technologies (PDF)
Permisson Bar uses jQuery for its animations and events. It checks if 'jQuery' is defined, and if it's not, it provides the library by itself (version 1.7.2 - from Google's CDN).
Once user clicks 'Allow Cookies' Permission Bar will set a cookie for that domain with a name 'permissionbar' that will expire in 365 days. This means that the plugin will only show up once per domain (per year).
-
Grab the Github repo and place it on the server in its own directory. All the files, including images and stylesheets, need to maintain it's relative structure - that is be in the same directory - for the plugin to work correctly.
-
Put the following code on all relevant pages of your website right before the </body> tag.:
<script type="text/javascript" src="PATH-TO/permissionbar-latest.min.js"></script>
Version 1.5
Date of Commit 28.05.12
Cleaned jQuery slightly, reduced script size. Changed CSS slightly.
Initial version
Date of Commit: 28.05.12
Code is of questionable quality, but it works.