-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·71 lines (66 loc) · 2.28 KB
/
index.html
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cookie Test</title>
<link rel="stylesheet" href="dist/cookieconsent-v2-styles.css">
</head>
<body>
<h1>Cookie Test</h1>
<button class="addConsent" data-cookiename="gmaps">Google Maps zulassen.</button>
<script src="dist/cookieconsent-v2-app.min.js"></script>
<script>
let cookie = {
consents: {
youtube: {
name: 'Youtube',
info: 'Wir verwenden Youtube',
showSwitch: true,
cookieName: 'youtube',
onInit: (status) => {
console.log('init youtube');
},
onAllow: () => {
console.log('allow youtube');
},
onRevoke: () => {
console.log('revoke youtube');
}
},
gmaps: {
name: 'Google Maps',
info: 'Google Maps',
showSwitch: true,
cookieName: 'gmaps'
},
allgemein: {
name: "Grundlegende Cookies",
info: "Die grundlegenden Funktionen sind wichtig.",
showSwitch: false
}
},
palette: {
popup: {
background: "rgba(120, 120, 120, 0.7)",
text: "#787878"
},
button: {
background: "#de3f0e",
text: "#ffffff"
},
},
content: {
message: 'Wir verwenden Cookies. Weitere Informationen zu Cookies erhalten Sie in unserer <a href="/datenschutzerklaerung">Datenschutzerklärung</a>',
link: "Datenschutzerklärung.",
href: "https://domain.de/datenschutz.php",
imprintLink: "http://127.0.0.1:5500/cookie-v2/impressum.html",
allow: "Akzeptieren",
dismiss: "Ablehnen",
optionsOpen: "Einstellungen Ändern"
},
}
window.cookiwi.init(cookie);
</script>
</body>
</html>