applied cookies popup to all pages

This commit is contained in:
Bea 2020-07-10 12:00:56 +02:00
parent 39b01264da
commit b06af3b038
4 changed files with 33 additions and 7 deletions

View File

@ -26,10 +26,19 @@
})(); })();
</script> </script>
<!-- End Matomo Code --> <!-- End Matomo Code -->
<script src="/scripts/policy-popup.js"></script>
</head> </head>
<body> <body onload="openPolicyPopup()">
<div class="policy-popup" id="policy-popup">
<h4>This website uses cookies.</h4>
<p>We use cookies to ensure you the best experience.
<br>
By visiting our website, you agree with our <a href="/pages/policy.html" target="_blank">Privacy Policy</a>.
</p>
<button onclick="agreePolicyPopup()">Ok, understood</button>
</div>
<div class="top-bar"> <div class="top-bar">
<div class="topnav"> <div class="topnav">
<a href="/">Home</a> <a href="/">Home</a>

View File

@ -26,9 +26,18 @@
})(); })();
</script> </script>
<!-- End Matomo Code --> <!-- End Matomo Code -->
<script src="/scripts/policy-popup.js"></script>
</head> </head>
<body> <body onload="openPolicyPopup()">
<div class="policy-popup" id="policy-popup">
<h4>This website uses cookies.</h4>
<p>We use cookies to ensure you the best experience.
<br>
By visiting our website, you agree with our <a href="/pages/policy.html" target="_blank">Privacy Policy</a>.
</p>
<button onclick="agreePolicyPopup()">Ok, understood</button>
</div>
<div class="top-bar"> <div class="top-bar">
<div class="topnav"> <div class="topnav">
<a href="/">Home</a> <a href="/">Home</a>

View File

@ -26,10 +26,18 @@
})(); })();
</script> </script>
<!-- End Matomo Code --> <!-- End Matomo Code -->
<script src="/scripts/policy-popup.js"></script>
</head> </head>
<body> <body onload="openPolicyPopup()">
<div class="policy-popup" id="policy-popup">
<h4>This website uses cookies.</h4>
<p>We use cookies to ensure you the best experience.
<br>
By visiting our website, you agree with our <a href="/pages/policy.html" target="_blank">Privacy Policy</a>.
</p>
<button onclick="agreePolicyPopup()">Ok, understood</button>
</div>
<div class="top-bar"> <div class="top-bar">
<div class="topnav"> <div class="topnav">
<a href="/">Home</a> <a href="/">Home</a>

View File

@ -60,7 +60,7 @@ a {
display: none; /*Hidden, we want to show it via JavaScript */ display: none; /*Hidden, we want to show it via JavaScript */
/* Theming */ /* Theming */
background: #535353; background: #151515;
color: white; color: white;
border-radius: 3px; border-radius: 3px;
padding: 10px; padding: 10px;
@ -73,7 +73,7 @@ a {
overflow: hidden; overflow: hidden;
/* Positioning */ /* Positioning */
position: absolute; position: fixed;
left: 50px; left: 50px;
bottom: 75px; bottom: 75px;
z-index: 2; z-index: 2;
@ -95,7 +95,7 @@ a {
transition-duration: 0.4s; transition-duration: 0.4s;
border-radius: 3px; border-radius: 3px;
background-color: #917d6b; background-color: #484848;
border: none; border: none;
cursor: pointer; cursor: pointer;
color: white; color: white;