From 72373f996871e1e6ecac52b3ac495da7f853ec37 Mon Sep 17 00:00:00 2001 From: Oleg Lavrovsky Date: Mon, 28 May 2018 15:02:22 +0200 Subject: [PATCH] Cookie consent script --- publichealth/static/js/main.js | 19 +++++++++++++++++++ publichealth/templates/base.html | 4 +++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/publichealth/static/js/main.js b/publichealth/static/js/main.js index c4090cb..fdfab37 100644 --- a/publichealth/static/js/main.js +++ b/publichealth/static/js/main.js @@ -68,6 +68,25 @@ $(document).ready(function() { nextArrow: '', }); + // Cookie notice via insites.com + window.cookieconsent.initialise({ + "palette": { + "popup": { + "background": "#edeff5", + "text": "#838391" + }, + "button": { + "background": "#4b81e8" + } + }, + "theme": "edgeless", + "content": { + "message": "Diese Website verwendet Cookies, um Ihnen eine optimale Nutzung unserer Website zu ermöglichen.", + "dismiss": "Zustimmen", + "link": "Weitere informationen", + "href": "/privacy/" + } + }); // Pastel colors on live news // $('.feedpage-body .panel').each(function() { diff --git a/publichealth/templates/base.html b/publichealth/templates/base.html index 7ddf16f..9a1cea0 100644 --- a/publichealth/templates/base.html +++ b/publichealth/templates/base.html @@ -13,7 +13,9 @@ {% endcompress %} - + + +