0.3.1 • Published 7 years ago

eu-cookie-alert v0.3.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

EU Cookie Alert

Build Status devDependency Status

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.