-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cookie
38 lines (36 loc) · 830 Bytes
/
Cookie
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* static/css/cookieconsent.css */
// static/js/cookieconsent.js
function acceptCookies() {
document.getElementById('cookieConsent').style.display = 'none';
localStorage.setItem('cookiesAccepted', 'true');
}
window.onload = function() {
if (!localStorage.getItem('cookiesAccepted')) {
document.getElementById('cookieConsent').style.display = 'block';
}
}
#cookieConsent {
background: #232323;
color: #fff;
text-align: center;
padding: 20px;
position: fixed;
bottom: 0;
width: 100%;
z-index: 9999;
}
.cookieConsentContainer {
display: flex;
justify-content: space-between;
align-items: center;
}
.cookieTitle {
font-weight: bold;
margin-right: 10px;
}
.cookieButton {
background: #f1d600;
padding: 10px;
border: none;
cursor: pointer;
}