forked from prebid/prebid.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpub_common_id_optout.html
36 lines (33 loc) · 1.15 KB
/
pub_common_id_optout.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
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.0/jquery-confirm.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.0/jquery-confirm.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#fpcsettings").click(function() { showDialog();});
});
function setCookie(name, value, days) {
var d = new Date;
d.setTime(d.getTime() + 24*60*60*1000*days); document.cookie = name + "=" + value + ";path=/;expires=" + d.toGMTString();
}
function deleteCookie (name){ setCookie(name, '', -1); }
function showDialog(){
$.confirm({
title: 'Publisher Common ID Opt Out', content: 'Publisher Common ID Opt Out', cancelButton: 'Opt Out',
buttons: {
optin:{
text: 'Opt Out',
action: function(){
setCookie('_pubcid_optout', '1', 1825);
deleteCookie('_pubcid'); }
}}
});
}
</script>
</head>
<body>
To control Publisher Common ID settings <a id="fpcsettings">click here</a>.
</body>
</html>