Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Drop-in jQuery plugin for implied to consent to the EU Cookie directive
branch: master

This branch is 14 commits behind phuu:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
index.html
jquery.cookie.js
jquery.cookieConsent.js
jquery.cookieConsent.min.js

README.md

jquery.cookieConsent

jquery.cookieConsent

Drop-in jQuery plugin for implied to consent to the EU Cookie directive.

Compliance in one file and $.cookieConsent().

Contains jquery.cookie.

Usage

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="jquery.cookieConsent.min.js"></script>
<script>
  $.cookieConsent();
</script>

Configuration

  $.cookieConsent({
    mode: 'default', // Default, tab or popover
    color: {
      main: '#29f', // Border & icon color
      bg: '#fff', // Background color
      popover: 'rgba(0,0,0,.3)', // Popover background color
      text: '#444' // Text color
    },
    font: '12px Tahoma, sans-serif', // Font size & family
    width: 'auto', // Width of the banner
    maxWidth: '50%' // Responsiveness
  });

License

MIT License

Copyright (C) Tom Ashworth 2012

Something went wrong with that request. Please try again.