var _MetisCookie = {
chkCookieName : 'privacyAuth' ,
cssBaseUrl : 'https://www.privacylab.it//html/css/metisCookiePrivacy.css?v=20210119115110',
tastoOK : 'ACCETTA',
tastoClose : 'CHIUDI',
tastoKO : 'NEGA',
userIdx : '344657',
informativaBlockWin : function (){
return '
'+this.informativaCloseButton()+'
';
},
infoBlockWin : function (){
return '';
},
topBarText : 'INFORMATIVA BREVE
La informiamo che, per migliorare la sua esperienza di navigazione su questo sito web, Doss Visual Solution Srl utilizza diversi tipi di cookie, tra cui:
cookie di tipo funzionale alla navigazione (functionality cookie);cookie di tipo pubblicitario (advertising cookie);cookie di tipo statistico (performance cookie).che consentono di accedere a dati personali raccolti durante la navigazione. Nella pagina della Informativa Estesa che può consultare all\'indirizzo https://www.privacylab.it/informativa.php?08177344657 sono presenti le istruzioni per negare il consenso all\'installazione di qualunque cookie. Cliccando su \"ACCETTA\" o continuando la navigazione, saranno attivati tutti i cookie specificati nell\'Informativa Estesa ai sensi degli artt. 13 e 14 Reg.to UE 2016/679.
',
informativaCloseButton : function(){
return ''+this.tastoClose+'
';
},
topBarButton : function(){
return ''+this.tastoOK+'
';
},
topBarDiv : function() {
return '' + this.topBarText + '
' + this.topBarButton() + '
';
},
cookies : [],
chkAuth : function(){
var me = this;
me.waitUntil(
function () {
me.getAll();
me.addCSS();
var chk = me.getCookie(me.chkCookieName);
if (!chk) {
me.setCookie(me.chkCookieName, 'negate', 10);
chk = me.getCookie(_MetisCookie.chkCookieName);
}
if (chk != me.userIdx) {
me.showTopBar();
}
},
function() {
// the code that tests here... (return true if test passes; false otherwise)
return !!( document.body.innerHTML !== '');
},
50 // amout to wait between checks
)();
},
autOK : function(){
this.setCookie(this.chkCookieName, this.userIdx, 10); //commenta per test
document.getElementById('metisCookieTopBar').style.display = 'none';
},
autKO : function(){
document.getElementById('metisCookieTopBar').style.display = 'none';
var div = document.getElementById('metisCookieInfoBlock');
if (!div) {
//document.body.innerHTML += this.infoBlockWin();
var tempElement = document.createElement('div');
tempElement.innerHTML = this.infoBlockWin();
document.getElementsByTagName('body')[0].appendChild(tempElement.firstChild);
div = document.getElementById('metisCookieInfoBlock');
document.getElementById('metisCookieInfoBlock').onclick = function(e) {
document.getElementById('metisCookieInfoBlock').style.display = 'none';
}
}
},
showInformativa : function(){
var me = this;
me.waitUntil(
function () {
var div = document.getElementById('metisCookieInformativa');
if (!div) {
//document.body.innerHTML += me.informativaBlockWin();
var tempElement = document.createElement('div');
tempElement.innerHTML = me.informativaBlockWin();
document.getElementsByTagName('body')[0].appendChild(tempElement.firstChild);
div = document.getElementById('metisCookieInformativa');
}
document.getElementById('metisCookieInformativa').style.display = 'block';
},
function() {
// the code that tests here... (return true if test passes; false otherwise)
return !!( document.body.innerHTML !== '');
},
50 // amout to wait between checks
)();
},
closeInformativa : function(){
document.getElementById('metisCookieInformativa').style.display = 'none';
document.getElementById('metisCookieTopBar').onclick = function(e) {
if (e.target.className != 'metisCookieButton' && e.target.tagName != 'A'){
_MetisCookie.autOK();
}
}
},
setCookie : function (cname, cvalue, exdays) {
var d = new Date();
d.setTime(d.getTime() + (exdays*24*60*60*1000));
var expires = "expires="+d.toUTCString();
document.cookie = cname + "=" + cvalue + "; " + expires + ";path=/; ";
},
getCookie : function(cname) {
var name = cname + "=";
var ca = document.cookie.split(';');
for(var i=0; i < ca.length; i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1);
if (c.indexOf(name) == 0) return c.substring(name.length, c.length);
}
return false;
},
getAll : function() {
this.cookies = document.cookie.split(';');
return this.cookies;
},
showTopBar : function(){
var me = this;
me.waitUntil(
function () {
var div = document.getElementById('metisCookieTopBar');
if (!div) {
//document.body.innerHTML += me.topBarDiv();
var tempElement = document.createElement('div');
tempElement.innerHTML = me.topBarDiv();
document.getElementsByTagName('body')[0].appendChild(tempElement.firstChild);
div = document.getElementById('metisCookieTopBar');
}
setTimeout(function(){
document.getElementById('metisCookieTopBar').onclick = function(e) {
if (e.target.className != 'metisCookieButton' && e.target.tagName != 'A'){
_MetisCookie.autOK();
}
}
},2000);
setTimeout(function(){
div.setAttribute('class','showTop');
},1000);
},
function() {
// the code that tests here... (return true if test passes; false otherwise)
return !!( document.body.innerHTML !== '');
},
50 // amout to wait between checks
)();
},
addCSS : function(){
var link = document.createElement( "link" );
link.href = _MetisCookie.cssBaseUrl;
link.type = "text/css";
link.rel = "stylesheet";
link.media = "screen,print";
document.getElementsByTagName( "head" )[0].appendChild( link );
},
waitUntil : function (fn, condition, interval) {
interval = interval || 100;
var shell = function () {
var timer = setInterval(
function () {
var check;
try { check = !!(condition()); }
catch (e) {
check = false;
}
if (check) {
clearInterval(timer);
delete timer;
fn();
}
},
interval
);
};
return shell;
}
}
_MetisCookie.chkAuth();