Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

42 lines (31 sloc) 1.036 kb

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

Jump to Line
Something went wrong with that request. Please try again.