aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMirek Kratochvil <exa.exa@gmail.com>2023-06-18 18:25:40 +0200
committerMirek Kratochvil <exa.exa@gmail.com>2023-06-18 18:25:40 +0200
commitd792ed815ec21b5b95797b9411f2345e48f625c2 (patch)
treea86d35998f39376eb54ad0feb17d33b5b3a26c09 /templates
parentce44f744c2c6e1990525d7fb2f539bfdf019f5fa (diff)
downloadreploy-d792ed815ec21b5b95797b9411f2345e48f625c2.tar.gz
reploy-d792ed815ec21b5b95797b9411f2345e48f625c2.tar.bz2
clean up the cookie banner code
Diffstat (limited to 'templates')
-rw-r--r--templates/head.html25
1 files changed, 12 insertions, 13 deletions
diff --git a/templates/head.html b/templates/head.html
index a095790..2a634a2 100644
--- a/templates/head.html
+++ b/templates/head.html
@@ -13,20 +13,19 @@
</title>
<link rel="stylesheet" href="{{root}}style.css" />
<link rel="stylesheet" href="{{root}}fonts.css" />
- <!-- LCSB Matomo integration -->
- <script src="/assets/vendor/js/jquery-3.6.0.min.js"></script>
<script>
- const settings = {
- expires: "180",
- matomoURL: "https://analytics.lcsb.uni.lu/hub/",
- siteID: "3",
- accept_all_text: "Aggregate statistics cookies accepted",
- only_necessary_text: "Only necessary cookies accepted",
- cookieName: "lap",
- bots: /bot|crawler|spider|crawling/i,
- timeout_hidebanner: "500",
- cookieDomain: "howto.lcsb.uni.lu",
- }
+ // settings for the provided by analytics.uni.lu (that drives the cookie banner)
+ const settings = {
+ expires: "180",
+ matomoURL: "https://analytics.lcsb.uni.lu/hub/",
+ siteID: "3",
+ accept_all_text: "Aggregate statistics cookies accepted",
+ only_necessary_text: "Only necessary cookies accepted",
+ cookieName: "lap",
+ bots: /bot|crawler|spider|crawling/i,
+ timeout_hidebanner: "500",
+ cookieDomain: window.location.hostname,
+ }
</script>
<script src="https://analytics.lcsb.uni.lu/lap/static/js/lap.js"></script>
<link rel="stylesheet" type="text/css" href="https://analytics.lcsb.uni.lu/lap/static/css/lap.css">