diff --git a/assets/scss/common/_variables.scss b/assets/scss/common/_variables.scss index 730d983c..c1358d04 100644 --- a/assets/scss/common/_variables.scss +++ b/assets/scss/common/_variables.scss @@ -199,4 +199,21 @@ $input-btn-focus-width: 0; height: 3rem; width: 3rem; font-size: 1.5rem; +} + +// Cookie consent +.cookie-banner { + position: fixed; + bottom: 40px; + left: 10%; + right: 10%; + width: 80%; + padding: 5px 14px; + display: flex; + align-items: center; + justify-content: space-between; + background-color: rgba(186, 194, 175, 0.932); + border-radius: 5px; + box-shadow: 0 0 2px 1px rgb(0, 83, 18); + z-index: 9999; } \ No newline at end of file diff --git a/content/en/docs/MMEX/cookiepolicy/index.md b/content/en/docs/MMEX/cookiepolicy/index.md new file mode 100644 index 00000000..5ebcd811 --- /dev/null +++ b/content/en/docs/MMEX/cookiepolicy/index.md @@ -0,0 +1,34 @@ +--- +title: "Cookie Policy" +description: "Cookie Policy" +lead: "" +date: 2022-02-20 +draft: false +images: [] +menu: + docs: + parent: "MMEX" +toc: true +--- + +Please read this cookie policy carefully before using our website. + +## What are cookies? + +Cookies are simple text files that are stored on your computer or mobile device by a website’s server. Each cookie is unique to your web browser. It will contain some anonymous information such as a unique identifier, website’s domain name, and some digits and numbers. + +## What types of cookies do we use? + +### Necessary cookies + +Necessary cookies allow us to offer you the best possible experience when accessing and navigating through our website and using its features. + +### Analytical cookies + +These cookies enable us and third-party services to collect aggregated data for statistical purposes on how our visitors use the website. These cookies do not contain personal information such as names and email addresses and are used to help us improve your user experience of the website. + +## How to delete cookies? + +If you want to restrict or block the cookies that are set by our website, you can do so through your browser setting. Alternatively, you can visit [Internet Cookies](https://www.internetcookies.org), which contains comprehensive information on how to do this on a wide variety of browsers and devices. You will find general information about cookies and details on how to delete cookies from your device. + +{{< alert context="info" text="This policy was last modified on 2022-02-20" />}} \ No newline at end of file diff --git a/content/en/docs/MMEX/privacy/index.md b/content/en/docs/MMEX/privacy/index.md index 15c380ef..a765120d 100644 --- a/content/en/docs/MMEX/privacy/index.md +++ b/content/en/docs/MMEX/privacy/index.md @@ -34,7 +34,7 @@ We implement a variety of security measures to maintain the safety of your perso ## Do we use cookies? -We do not use cookies. +See our [Cookie Policy](../cookiepolicy/) ## Do we disclose any information to outside parties? @@ -68,4 +68,4 @@ By using our site, you consent to our websites privacy policy. If we decide to change our privacy policy, we will post those changes on this page, and/or update the Privacy Policy modification date below. -*This policy was last modified on 2014-05-23* \ No newline at end of file +{{< alert context="info" text="This policy was last modified on 2022-02-20" />}} \ No newline at end of file diff --git a/data/consent.yml b/data/consent.yml deleted file mode 100644 index cd20726a..00000000 --- a/data/consent.yml +++ /dev/null @@ -1,9 +0,0 @@ -items: - - title: Google Anaytics (functional) - description: This code gives us insight into the number of people that visit our website, where they are from and what they are clicking on. We follow the guidelines of the Dutch Government, which describe how to use Google Analytics without requiring explicit consent. - is_functional: true - script_file: ga.js - - title: Crisp chat - description: This code gives users the option to chat directly with us through a chat box in the bottom right corner. Visitor data will (also) be sent to Crisp. - is_functional: false - script_file: crisp.js \ No newline at end of file diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 940b9f31..1342f1f5 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -22,8 +22,8 @@ {{ block "sidebar-prefooter" . }}{{ end }} {{ block "sidebar-footer" . }}{{ end }} {{ partial "footer/footer.html" . }} + {{ partial "footer/consent.html" . }} {{ partial "footer/script-footer.html" . }} {{ partial "index/platform.html" . }} - \ No newline at end of file diff --git a/layouts/partials/consent.html b/layouts/partials/consent.html deleted file mode 100644 index 091bd662..00000000 --- a/layouts/partials/consent.html +++ /dev/null @@ -1,166 +0,0 @@ - - - - - -{{ range $index, $item := .Site.Data.consent.items }} - {{ if $item.is_functional }} - - {{ end }} -{{ end }} \ No newline at end of file diff --git a/layouts/partials/footer/consent.html b/layouts/partials/footer/consent.html new file mode 100644 index 00000000..fee582ce --- /dev/null +++ b/layouts/partials/footer/consent.html @@ -0,0 +1,4 @@ + \ No newline at end of file diff --git a/layouts/partials/footer/script-footer.html b/layouts/partials/footer/script-footer.html index 9e4104e5..603a2759 100644 --- a/layouts/partials/footer/script-footer.html +++ b/layouts/partials/footer/script-footer.html @@ -102,4 +102,5 @@ {{ if and (.Site.Params.options.flexSearch) (eq .Section "docs") -}} {{ end -}} -{{ end -}} \ No newline at end of file +{{ end -}} + \ No newline at end of file diff --git a/layouts/partials/head/gtag.html b/layouts/partials/head/gtag.html new file mode 100644 index 00000000..0b52bee3 --- /dev/null +++ b/layouts/partials/head/gtag.html @@ -0,0 +1,7 @@ + + \ No newline at end of file diff --git a/layouts/partials/head/head.html b/layouts/partials/head/head.html index 42ffdcae..6bde1960 100644 --- a/layouts/partials/head/head.html +++ b/layouts/partials/head/head.html @@ -7,5 +7,5 @@ {{ block "head/stylesheet" . }}{{ partial "head/stylesheet.html" . }}{{ end }} {{ block "head/seo" . }}{{ partial "head/seo.html" . }}{{ end }} {{ block "head/favicons" . }}{{ partial "head/favicons.html" . }}{{ end }} - {{ template "_internal/google_analytics.html" . }} + {{ if ne .Site.GoogleAnalytics "" }}{{ partial "head/gtag.html" . }}{{ end }} \ No newline at end of file diff --git a/layouts/partials/index/platform.html b/layouts/partials/index/platform.html index 26f4b288..b6686018 100644 --- a/layouts/partials/index/platform.html +++ b/layouts/partials/index/platform.html @@ -1,3 +1,4 @@ +{{ if .IsHome -}} \ No newline at end of file + +{{ end -}} \ No newline at end of file diff --git a/static/js/cookieconsent.js b/static/js/cookieconsent.js new file mode 100644 index 00000000..c5306e08 --- /dev/null +++ b/static/js/cookieconsent.js @@ -0,0 +1,10 @@ +if(localStorage.getItem('cookieSeen') != 'shown') + { + document.getElementById("cookieconsent").style.display = 'block'; + } + + document.getElementById("cookieclose").onclick = function() + { + document.getElementById("cookieconsent").style.display = 'none'; + localStorage.setItem('cookieSeen','shown') + }; \ No newline at end of file