Get started with cookieconsent2 CDN
MIT licensed
JS plugin: CookieConsent2 - EU Cookie Law compliance, customizable banner for cookie preference management.
Tags:- cookieconsent
- cookie
- law
Stable version
Copied!
How to start using cookieconsent2 CDN
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.1/cookieconsent.min.css">
<script src="https://cdn.cdnhub.io/cookieconsent2/3.1.1/cookieconsent.min.js"></script>
<script>
window.addEventListener('load', function() {
window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "#212121"
},
"button": {
"background": "#3498db"
}
},
"content": {
"href": "your-cookie-policy-url"
},
"allow_insecure_cookies": false,
"auto_accept_for_closed_on_scroll": false,
"auto_accept_for_closed": false,
"show_learn_more": false,
"show_of_consent_notification": true,
"enable_decline_and_retract": true,
"cookie_notice_show_icon": false,
"cookie_notice_position": "bottom-left"
});
});
</script>
</head>
<body>
<!-- Your website content goes here -->
</body>
</html>
Copied!
Copied!