Drop-in jQuery plugin for implied to consent to the EU Cookie directive.
Compliance in one file and $.cookieConsent()
.
Contains jquery.cookie.
<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>
$.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
});
MIT License
Copyright (C) Tom Ashworth 2012