Get started with cookieconsent CDN
MIT licensed
CookieConsent: Customizable library for GDPR-compliant cookie consent.
Tags:- cookieconsent
- cookie
- law
Stable version
Copied!
How to start using cookieconsent CDN
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/cookieconsent/3.1.1/cookieconsent.css">
<script src="https://cdn.cdnhub.io/cookieconsent/3.1.1/cookieconsent.min.js"></script>
<script>
window.addEventListener('load', function() {
window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "#212121"
},
"button": {
"background": "#2ecc71"
}
},
"content": {
"href": "your-privacy-policy-url"
}
});
});
</script>
</head>
<body>
<!-- Your website content goes here -->
</body>
</html>
Copied!
Copied!