-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.htm
76 lines (66 loc) · 2.02 KB
/
example.htm
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
72
73
74
75
76
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>novaCookie Example</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" type="text/css" href="novaconsent.css" />
<style type="text/css">
body {
font-family: OpenSans, Arial, "sans-serif";
font-size: 1rem;
line-height: 1.8rem;
}
</style>
</head>
<body>
<div style="width:100%;max-width:780px;margin:20px auto 100px auto;">
<h1>novaConsent</h1>
<p>
<small>Version 1.0</small><br>
Simple Cookie Consent Layer.<br>
Currently only technically necessary cookies supported!
</p>
<h2>Integration</h2>
<p>
Include in <i>head</i>:<br>
<code><link rel="stylesheet" type="text/css" href="novaconsent.css" /></code><br><br>
Include at the end of the <i>body</i>:<br>
<code><script src="novaconsent.js" async></script></code>
</p>
<h2>Own Configuration</h2>
<p>
You can use your own configuration. Just include a javascript variable with the name <code>novaConsentConfig</code> and overwride the values as your wish. It's not necessary to overwrite every value.
</p>
<h3>Examples</h3>
<h4>Full configuration</h4>
<pre>
<script type="text/javascript" charset="utf-8">
var novaConsentConfig = {
cookieName: "novaConsent",
cookieTimeout: 365,
infoText: "We only use technically necessary cookies.",
acceptButtonText: "Okay",
moreInfo: "<a href='/privacy'>Details</a>",
SameSite: "Strict",
}
</script>
</pre>
<h4>Overwrite just some values</h4>
<pre>
<script type="text/javascript" charset="utf-8">
var novaConsentConfig = {
cookieTimeout: 250,
moreInfo: "<a href='/privacy'>Details</a>",
}
</script>
</pre>
</div>
<script type="text/javascript" charset="utf-8">
var novaConsentConfig = {
moreInfo: "<a href='#lala'>Details</a>"
}
</script>
<script src="novaconsent.min.js" async></script>
</body>
</html>