-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
57 lines (51 loc) · 1.75 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>HUK Cookie JS</title>
<meta name="description" content="">
<meta name="author" content="">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" type="text/css" href="css/cookie_style.css">
</head>
<body>
<div id='container'>
<h1>EU - Cookie Opt in-out</h1>
<p>This is cookie opt in-out library as per the new EU law released on the 26th May.</p>
<ul>
<li><a href='javascript:EU.CookiePreferenceUI.toggleOptions();void(0);'>Change Settings</a></li>
</ul>
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="jquery-1.7.2.min.js"><\/script>')</script>
<script type="text/javascript" src='cookie.debug.js'></script>
<script type="text/javascript">
// Use a domready function or the likes (i.e. $(document).ready(init) for jQuery)
// Alternatively, you can use this onload function:
attach(window, 'load', init);
function attach(elm, event, callback) { // @see http://stackoverflow.com/questions/9434/how-do-i-add-an-additional-window-onload-event-in-javascript
if (elm.addEventListener) { // W3C standard
window.addEventListener(event, callback, false);
} else if (elm.attachEvent) { // Microsoft
elm.attachEvent('on' + event, callback);
}
}
function init(){
EU.CookieManager.init({
expires: 20,
cookie_prefix: 'EU_',
optin_cookie_name: 'OPTIN',
test:false,
idle:0,
link: 'cookie.html',
defaultValue:4,
assosiatedCookies: {
'strict' : ['a'],
'functional': ['b', 'c'],
'targeting': ['d', 'e', 'f']
}
});
}
</script>
</body>
</html>