clean up the cookie banner code

This commit is contained in:
Mirek Kratochvil 2023-06-18 18:25:40 +02:00
parent ce44f744c2
commit d792ed815e

View file

@ -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">