81 lines
2.7 KiB
HTML
81 lines
2.7 KiB
HTML
<!-- ###COOKIE### -->
|
|
<script type="text/javascript">
|
|
var addSize = "###STR_LEN_ADD_TEXT###";
|
|
var title = "###TITLE###";
|
|
if(title.length == 0){
|
|
title = "Cookie Control";
|
|
}
|
|
var buttonText = "###BUTTON_TEXT###";
|
|
if(buttonText.length ==0){
|
|
buttonText = "I am happy with this";
|
|
}
|
|
var button = "";
|
|
if(addSize > 0){
|
|
button = "<button class=\"ccc-expand\">read more</button>";
|
|
}else{
|
|
button = "";
|
|
}
|
|
var revokeButtonText = "###REVOKE_BUTTON_TEXT###";
|
|
if(revokeButtonText.length == 0){
|
|
revokeButtonText = "Revoke Concent";
|
|
}
|
|
</script>
|
|
<script src="###PATH###pi1/js/cookieControl-4.1.min.js" type="text/javascript"></script>
|
|
<link rel="stylesheet" type="text/css" href="###THEMEFILE###" />
|
|
<script src="http://www.geoplugin.net/javascript.gp" type="text/javascript"></script>
|
|
<script type="text/javascript"> //<![CDATA[
|
|
cookieControl({
|
|
introText:'###INTROTEXT###',
|
|
fullText:'###FULLTEXT###',
|
|
position:"###POSITION###", // left or right
|
|
shape:"###SHAPE###", // triangle or diamond
|
|
theme:"###THEME###", // light or dark
|
|
startOpen:true,
|
|
autoHide:6000,
|
|
countries:"###COUNTRIES###",
|
|
subdomains:true,
|
|
###EXTRAOPTION###
|
|
});
|
|
function ccAddAnalytics() {
|
|
jQuery.getScript("http://www.google-analytics.com/ga.js", function() {
|
|
var GATracker = _gat._createTracker('###CODE###');
|
|
GATracker._trackPageview();
|
|
});
|
|
}
|
|
//]]>
|
|
$(document).ready(function(){
|
|
$('#clearcookies').click(function(){
|
|
$('.ccc-widget').hide();
|
|
$.ajax({
|
|
url: 'index.php',
|
|
data: {
|
|
eID: 'cookieDelete',
|
|
tx_cookie_control_pi1: ({
|
|
'in': 'delete'
|
|
})
|
|
},
|
|
success: function(data) {
|
|
CookieControl.reset();
|
|
setTimeout(function(){window.location.reload()}, 500);
|
|
}
|
|
});
|
|
return false;
|
|
});
|
|
$('#ccc-go').click(function(){
|
|
$.ajax({
|
|
url: 'index.php',
|
|
data: {
|
|
eID: 'cookieDelete',
|
|
tx_cookie_control_pi1: ({
|
|
'in': 'allow'
|
|
})
|
|
},
|
|
success: function(data) {
|
|
//setTimeout(function(){window.location.reload()}, 500);
|
|
}
|
|
});
|
|
});
|
|
});
|
|
</script>
|
|
<!-- ###COOKIE### -->
|