code-cookbook
code-cookbook copied to clipboard
Add cookie consent
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.0/cookieconsent.min.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.0/cookieconsent.min.js"></script>
<script>
window.addEventListener("load", function() {
window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "#000"
},
"button": {
"background": "#cba477"
}
},
"showLink": false,
"content": {
"message": "This website uses cookies to analyze traffic via anonymized and aggregated data."
},
"position": "bottom-right"
})
});
</script>