forked from olliescheers/Cookies
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
93 lines (86 loc) · 4.17 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!DOCTYPE html>
<!------------------------------------------------------------------------------
This file is part of the BT cookie solution.
The BT cookie solution is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
The BT cookie solution is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with the BT cookie solution. If not, see <http://www.gnu.org/licenses/>.
Copyright BT plc 2012
--------------------------------------------------------------------------------->
<head>
<title>BT cookie implementation demo</title>
<link href="css/demo.css" media="all" type="text/css" rel="stylesheet" />
<script src="js/bt.cookies.api.js" type="text/javascript"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4f58c9595aaf84f7"></script>
<script type="text/javascript">
$(document).ready(function () {
var addthis_config = {"data_track_addressbar":true};
var addthis_pub = "iberry";
if (btCookiesAPI.hasSupportFor('targeting'))
{
$('#addThisToAlter').append('<!-- AddThis Button BEGIN -->\
<div class="addthis_toolbox addthis_default_style addthis_16x16_style">\
<a class="addthis_button_preferred_1"></a>\
<a class="addthis_button_preferred_2"></a>\
<a class="addthis_button_google_plusone_badge" g:plusone:size="small" g:plusone:href="https://plus.google.com/102383601500147943541/"></a>\
<a class="addthis_button_compact"></a>\
<a class="addthis_counter addthis_bubble_style"></a>\
</div>');
}
else
{
$('#addThisToAlter').append('<!-- AddThis Button BEGIN -->\
<div class="addthis_toolbox addthis_default_style " style="display:none;">\
<a class="addthis_counter addthis_bubble_style" id="counter"></a>\
</div>\
<div class="addthis_toolbox addthis_default_style addthis_16x16_style">\
<a id="addThisFB" rel=\"yourCookieSettings\" href=\"#\" class=\"addThis_replica cookieLightbox\"></a>\
<a id="addThisTwitter" rel=\"yourCookieSettings\" href=\"#\" class=\"addThis_replica cookieLightbox\"></a>\
<a id="addThisGoogleP" rel=\"yourCookieSettings\" href=\"#\" class=\"addThis_replica cookieLightbox\"></a>\
<a id="addThisShare" rel=\"yourCookieSettings\" href=\"#\" class=\"addThis_replica cookieLightbox\"></a>\
</div>');
}
});
</script>
</head>
<body>
<div id="page">
<div id="contentArea">
<div id="header">
<a href="http://www.bt.com" target="_blank"><img src="logo/logo_81x38.gif" border="0"></a>
</div>
<h1>Cookie Solution Demo</h1>
<div id="introNotes">
This is a simple implementation of BT.com cookie solution.<br>
Hope this is useful to you.
</div>
<div id="gitLink">
Get this project on <a href="https://github.com/BTplc/Cookies.git" target="_blank">Github</a>
</div>
<div id="cookieLevelMsg">
<script type="text/javascript">
var supportedCookies = "Strictly necessary, performance";
// Cookie wrapping example single argument: can be ('targeting') or ('functional')
if (btCookiesAPI.hasSupportFor('functional')) {
supportedCookies = supportedCookies + ', functional';
}
// Cookie wrapping example with multiple arguments
if (btCookiesAPI.hasSupportFor('functional','targeting')) {
supportedCookies = supportedCookies + ', targeting';
}
document.write("<h3>Cookies supported: " + supportedCookies + "</h3>");
</script>
</div>
<div id="addThisToAlter" class="alignAddThis"></div>
</div>
</div>
<script src="js/bt.cookies.js" type="text/javascript"></script>
</body>
</html>