/*console.log("");*/ if (!String.prototype.startsWith) { String.prototype.startsWith = function(searchString, position){ return this.substr(position || 0, searchString.length) === searchString; }; } if (!String.prototype.endsWith ) { String.prototype.endsWith = function(pattern) { var d = this.length - pattern.length; return d >= 0 && this.lastIndexOf(pattern) === d; }; } /*console.log("Siamo dentro un iframe = "+(window.self!==window.top));*/ function gdprGetOccurrencesOfScript(url) { var occurrences = 0; var scripts = document.getElementsByTagName('script'); for (var i = scripts.length; i--;) { if (scripts[i].src=="") { continue; } if (String(scripts[i].src).startsWith(url)) { occurrences++; /*console.log("Plugin GDPR finded "+occurrences+" 7");*/ } } return occurrences; } var gdprReferenceRequest = "7"; var gdprReferenceSession = "7"; if (gdprReferenceSession=="") { console.log("Parametri insufficienti per il plugin GDPR."); } console.log("User non trovato fase1");