To be in compliance with the "Cookies" CNIL recommendation
- Content is injected with JavaScript for seo-friendly
- Mobile first
- Options for custom text and translations
- Slim [for html]
- SCSS [for css]
- CoffeeScript [for js]
- Middleman [static site generator made easy]
- Bower [js package management]
- GitHub Pages [deployment/hosting]
$ bundle
$ middleman server
$ middleman build
- Use bower :
bower install jquery-cookie-alerter --save
- Download the latest version
AlertLaw.start();
If you want to have a custom message you have some options available :
AlertLaw.start({
cookieUrl: "path/to/info-page.html",
messageTitle: "Cookies",
messageContent: "By continuing your visit to our site, you agree to (...) and make visits statistics.",
cookieName: "cookies_law",
});
Want to see the result ? Visit the demo page
Licensed under MIT license.