@cryptotaxi247 / netdata-1 / commits / 8f585710c

Add cookie consent javascript to docs (#4801)

Show pop up that the site uses cookies. We don't collect any personal info, so no opt-in/opt-out required (GA will be configured with IP Anonymization) Related to #4798

Chris Akritidis committed Nov 30, 2018 at 15:41 UTC 8f585710c7737d1d8e731915872641c76c4a0dc6
2 files changed +20
docs/generator/buildyaml.sh
+5
@@ -64,6 +64,11 @@ extra:
64 theme:
65 name: "material"
66 custom_dir: themes/material
67 +extra_css:
68 + - "https://cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.0/cookieconsent.min.css"
69 +extra_javascript:
70 + - "javascripts/cookie-consent.js"
71 + - "https://cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.0/cookieconsent.min.js"
72 markdown_extensions:
73 - extra
74 - abbr
docs/javascripts/cookie-consent.js new
+15
@@ -0,0 +1,15 @@
1 +window.addEventListener("load", function(){
2 +window.cookieconsent.initialise({
3 + "palette": {
4 + "popup": {
5 + "background": "#000"
6 + },
7 + "button": {
8 + "background": "#f1d600"
9 + }
10 + },
11 + "content": {
12 + "href": "https://docs.netdata.cloud/docs/privacy-policy/"
13 + }
14 +})});
15 +