eu-cookie-alert
v0.3.1
Published
Drop in solution for EU cookie alert
Downloads
4
Readme
EU Cookie Alert
Display a message on on your website for users to consent to your website using cookies. See http://ec.europa.eu/ipg/basics/legal/cookies/index_en.htm for details on why you may want to do this.
##Example
Install manually or via Bower: bower install eu-cookie-alert
.
Use
Load the script alongside any other javascript libraries you may be using, and trigger the alert with the following:
euCookieAlert.show();
Alternatively use the syntax:
euCookieAlert.show({
bodyClass: 'eu-cookie-alert',
buttonClass: 'eu-cookie-button',
cookieKey: 'eucookiealert',
cookieValue: 1,
alertId: 'eucookiealert',
alertMessage: 'This website uses cookies. Please read our privacy policy for more information.',
agreeMessage: 'I understand'
});
To amend the alert to your own preference
License
Script is licensed under MIT license.