simple cookie consent code (#799)

* simple cookie consent code
This commit is contained in:
Markos Gogoulos
2023-06-12 16:40:53 +03:00
committed by GitHub
parent cd8d0ea49a
commit ad633e6fdf
3 changed files with 65 additions and 39 deletions

View File

@ -1 +1,20 @@
<div id="app-header"></div>
<div id="app-header"></div>
{% comment %}
Uncomment, or replace with your own cookie consent code.
<script src="https://cdn.websitepolicies.io/lib/cookieconsent/cookieconsent.min.js" defer></script>
<script>
window.addEventListener("load", function () {
window.wpcc.init({
border: "normal",
corners: "normal",
colors: { popup: { background: "#222222", text: "#ffffff", border: "#FF8000" }, button: { background: "#FF8000", text: "#000000" } },
position: "top-right",
content: { message: "Hi there, we are using cookies on this website. We don't use tracking or analytics here, just the essentials for the Website to work.\n", button: "Understood! Yum!", link: "Click here to learn more." },
});
});
</script>
{% endcomment %}