Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
bootstrap-cookie-consent
Advanced tools
Readme
This 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 :
npm install bootstrap-cookie-consent
See dist/demo.html
:
<!-- Youtube player example -->
<div data-cookie-consent="YouTube">
<img src="https://img.youtube.com/vi/R4lZyXjGLRs/0.jpg" width="560" height="315">
<!--if-consent
<iframe src="https://www.youtube.com/embed/R4lZyXjGLRs" width="560" height="315" style="background:#000;border:0;"></iframe>
endif-->
</div>
<script>
document.addEventListener('DOMContentLoaded', function()
{
new BootstrapCookieConsent({
services: ['StatistiquesAnonymes', 'YouTube']
services_descr: [
'StatistiquesAnonymes' : 'Nous permet d\'améliorer le site en fonction de son utilisation',
'YouTube': 'Affiche les vidéos du service youtube.com'
]
});
});
</script>
To custom it :
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,
});
Other commands :
#To make the demo work
npm run-script start
#To Build the file
npm run-script build
MIT (see the LICENSE
file for details)
FAQs
Simple and light Boostrap banner and modal to manage cookies like the cnil advices it (RGPD)
We found that bootstrap-cookie-consent demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).