clean up the cookie banner code
This commit is contained in:
		
							parent
							
								
									ce44f744c2
								
							
						
					
					
						commit
						d792ed815e
					
				| 
						 | 
					@ -13,9 +13,8 @@
 | 
				
			||||||
  </title>
 | 
					  </title>
 | 
				
			||||||
  <link rel="stylesheet" href="{{root}}style.css" />
 | 
					  <link rel="stylesheet" href="{{root}}style.css" />
 | 
				
			||||||
  <link rel="stylesheet" href="{{root}}fonts.css" />
 | 
					  <link rel="stylesheet" href="{{root}}fonts.css" />
 | 
				
			||||||
  <!-- LCSB Matomo integration -->
 | 
					 | 
				
			||||||
  <script src="/assets/vendor/js/jquery-3.6.0.min.js"></script>
 | 
					 | 
				
			||||||
  <script>
 | 
					  <script>
 | 
				
			||||||
 | 
					  // settings for the provided by analytics.uni.lu (that drives the cookie banner)
 | 
				
			||||||
  const settings = {
 | 
					  const settings = {
 | 
				
			||||||
    expires: "180",
 | 
					    expires: "180",
 | 
				
			||||||
    matomoURL: "https://analytics.lcsb.uni.lu/hub/",
 | 
					    matomoURL: "https://analytics.lcsb.uni.lu/hub/",
 | 
				
			||||||
| 
						 | 
					@ -25,7 +24,7 @@
 | 
				
			||||||
    cookieName: "lap",
 | 
					    cookieName: "lap",
 | 
				
			||||||
    bots: /bot|crawler|spider|crawling/i,
 | 
					    bots: /bot|crawler|spider|crawling/i,
 | 
				
			||||||
    timeout_hidebanner: "500",
 | 
					    timeout_hidebanner: "500",
 | 
				
			||||||
      cookieDomain: "howto.lcsb.uni.lu",
 | 
					    cookieDomain: window.location.hostname,
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  </script>
 | 
					  </script>
 | 
				
			||||||
  <script src="https://analytics.lcsb.uni.lu/lap/static/js/lap.js"></script>
 | 
					  <script src="https://analytics.lcsb.uni.lu/lap/static/js/lap.js"></script>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue