Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (31 sloc) 1.01 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