Simple and light Boostrap banner and modal to manage cookies like the cnil advices it (RGPD)
npm install bootstrap-cookie-consentThis small bootstrap/jquery plugin permits to be compliant to GDPR (aka rgpd) like CNIL (France) ask.
Extend atillay/cookie-consent-api.
In one command line :
``bash`
npm install bootstrap-cookie-consent
See dist/demo.html :
`html

`
To custom it :
`js
new BootstrapCookieConsent({
services: [],
services_descr: [],
'show_selector' : '.cc',
'accept_id' : 'accept-cookie',
'banner_text' : 'Ce site utilise des services tiers susceptible de vous déposer un cookie. Pour une navigation optimale, acceptez-vous de les utiliser sur ce site ?',
'button_text' : 'J\'accepte',
'banner_id' : 'cookies-banner',
'link_more_info' : '#',
'more_info_label' : 'En savoir plus',
'details_title' : 'Vie Privée',
'details_text' : 'Vous pouvez accepter ou refuster l\'utilisation sur ce site de certains services.',
'checkbox_class' : 'custom-control-input',
cookieName: 'cookie_consent_settings', // From cookie-consent-api
cookieDuration: 365,
cookieDomain: null,
method: 1, // 0: native bootstrap, 1: jquery (classic) bootstrap
});
`
Other commands :
`bash`
#To make the demo work
npm run-script start
#To Build the file
npm run-script build
MIT (see the LICENSE` file for details)
* Original author : from the Alps Mountain.
* ...