PageSourceSearch

https://maps.lloretdemar.org/mediaCache/module/common/js/ckAcepto.js

js lloretdemar.org collected 2026-09-24 10:00:44 UTC 8,042 bytes, 20 lines download raw bytes

1
2window.boldest=window.boldest||{};window.boldest.uer=function uer(ev,label,more={}){let info={ev:ev,lb:label,e:0,prj:boldest.publicConf.project.id,h:window.location.host,p:window.location.pathname};if(typeof more.e==='undefined'&&typeof contextExplorerId!=='undefined'){info.e=parseInt(contextExplorerId||0,10);}
3navigator.sendBeacon('/uer',new URLSearchParams(Object.assign(info,more)));};var cogumelo=cogumelo||{};cogumelo.ckAcepto={autostarted:false,autostart:null,key:false,base:'ck-acepto-eu-law',name:'bw_ckacepto_status',ckValEnable:'11',ckValDisable:'00',link:'/politica-cookies',htmlLink:'<a class="ckAceptoLink" href="#cogumelo.ckAcepto.link#">#cogumelo.ckAcepto.txtLink#</a>',txtLink:'Política de uso de cookies',txtButtonAceptar:__('Aceptar'),txtButtonRechazar:__('Rechazar'),msg:'Utilizamos cookies ... más info #cogumelo.ckAcepto.htmlLink# '+'Pulse "#cogumelo.ckAcepto.txtButtonAceptar#" o "#cogumelo.ckAcepto.txtButtonRechazar#"',styles:['.ckAceptoBlock { position:fixed;bottom:0;width:100%;padding:25px;','color:#CCC;background-color:rgba(22,22,22,0.9);font-size:15px;line-height:26px;','border:2px solid #EEE;z-index:99999; }','.ckBlock { margin:0 auto;padding:15px; }','.ckBlockSub { margin:0;padding:0; }','a.ckButtonAcepto, a.ckButtonRechazo { float:right;margin:5px 0 5px 20px;padding:6px;font-weight:700;','color:#333 !important;background-color:#ACA;cursor:pointer; }','.ckAceptoLink { font-weight:700;color:#CCC !important;text-decoration:underline; }'].join(' ')};cogumelo.ckAcepto.getMsg=function getMsg(){var msg=cogumelo.ckAcepto.msg;msg=msg.replace('#cogumelo.ckAcepto.txtButtonAceptar#',cogumelo.ckAcepto.txtButtonAceptar);msg=msg.replace('#cogumelo.ckAcepto.txtButtonRechazar#',cogumelo.ckAcepto.txtButtonRechazar);msg=msg.replace('#cogumelo.ckAcepto.link#',cogumelo.ckAcepto.link);msg=msg.replace('#cogumelo.ckAcepto.txtLink#',cogumelo.ckAcepto.txtLink);var htmlLink=cogumelo.ckAcepto.htmlLink
4htmlLink=htmlLink.replace('#cogumelo.ckAcepto.link#',cogumelo.ckAcepto.link);htmlLink=htmlLink.replace('#cogumelo.ckAcepto.txtLink#',cogumelo.ckAcepto.txtLink);msg=msg.replace('#cogumelo.ckAcepto.htmlLink#',htmlLink);return msg;}
5cogumelo.ckAcepto.showPanel=function showPanel(){if(document.getElementById(this.base+'-panel')===null){var ckStyles=document.createElement('style');ckStyles.innerHTML=this.styles;var ckBlk=document.createElement('div');ckBlk.id=this.base+'-panel';ckBlk.className='ckAceptoBlock';ckBlk.innerHTML=''+'<div class="ckBlock" style="margin:0 auto;padding:15px;">'+'<span class="ckBlockSub" style="margin:0;padding:0;">'+'<a class="ckButtonAcepto">'+this.txtButtonAceptar+'</a>'+'<a class="ckButtonRechazo">'+this.txtButtonRechazar+'</a>'+'<span class="ckBlockMsg">'+this.getMsg()+'</span>'+'</span>'+'</div>';document.getElementsByTagName('body')[0].appendChild(ckStyles);document.getElementsByTagName('body')[0].appendChild(ckBlk);document.querySelectorAll('#'+this.base+'-panel a.ckButtonAcepto')[0].onclick=cogumelo.ckAcepto.ckBotAcepta;document.querySelectorAll('#'+this.base+'-panel a.ckButtonRechazo')[0].onclick=cogumelo.ckAcepto.ckBotRechaza;}};cogumelo.ckAcepto.getName=function getName(){return this.name;}
6cogumelo.ckAcepto.set=function set(acepto){var fecha=new Date();var ckVal=acepto?this.ckValEnable:this.ckValDisable;fecha.setTime(fecha.getTime()+(365*24*60*60*1000));document.cookie=this.getName()+'='+ckVal+'; expires='+fecha.toGMTString()+'; path=/; SameSite=Strict';};cogumelo.ckAcepto.get=function get(){var estado=null;var ckValues=document.cookie.replace(/ /g,'');if(ckValues.indexOf(this.getName()+'=')!==-1){estado=(ckValues.indexOf(this.getName()+'='+this.ckValEnable)!==-1)?true:false;}
7return estado;};cogumelo.ckAcepto.remove=function remove(){var cookies=document.cookie.split(';');for(const element of cookies){var cookie=element.trim();if(cookie.indexOf('bw_')===0){var eqPos=cookie.indexOf('=');var name=(eqPos>=0)?cookie.slice(0,eqPos):cookie;this.dropCk(name);}}};cogumelo.ckAcepto.cleanOld=function cleanOld(){var cookies=document.cookie.split(';');var ckNew=this.getName();for(const element of cookies){var cookie=element.trim();if(cookie.indexOf('ck-acepto')===0||cookie.indexOf('ckacepto')===0){var eqPos=cookie.indexOf('=');var name=(eqPos>=0)?cookie.slice(0,eqPos):cookie;this.dropCk(name);}
8if(cookie.indexOf(ckNew+'=')===0){if(cookie.indexOf(ckNew+'='+this.ckValEnable)!==0&&cookie.indexOf(ckNew+'='+this.ckValDisable)!==0){this.dropCk(ckNew);}}}};cogumelo.ckAcepto.dropCk=function dropCk(name){document.cookie=name+'=;expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; SameSite=Strict';};cogumelo.ckAcepto.ckBotAcepta=function ckBotAcepta(){cogumelo.ckAcepto.hidePanel();cogumelo.ckAcepto.set(true);cogumelo.ckAcepto.enableExternals();};cogumelo.ckAcepto.ckBotRechaza=function ckBotRechaza(){cogumelo.ckAcepto.hidePanel();};cogumelo.ckAcepto.hidePanel=function hidePanel(){document.getElementById(this.base+'-panel').remove();};cogumelo.ckAcepto.enableExternals=function enableExternals(key){var firstServiceKey=false;if(typeof key!=='undefined'){this.key=key;}
9if(Array.isArray(this.key)&&this.key.length>0){firstServiceKey=this.key[0];}
10if(!Array.isArray(this.key)){firstServiceKey=this.key;}
11if(firstServiceKey=='false'){firstServiceKey=false;}
12if(firstServiceKey){gtag=function(){dataLayer.push(arguments);};gtag('consent','update',{'ad_storage':'granted','analytics_storage':'granted'});if(Array.isArray(this.key)&&this.key.length>1){for(var skP=1;typeof this.key[skP]!='undefined';
12skP++){var gtagKey=(this.key[skP]==='false')?false:this.key[skP];if(gtagKey){gtag('config',gtagKey,{'anonymize_ip':true,'debug_mode':true});}}}
13if(typeof window.dataBwGtag!=='undefined'&&Array.isArray(window.dataBwGtag)){while(window.dataBwGtag.length>0){var pasado=window.dataBwGtag.shift();dataLayer.push(pasado);}}}};cogumelo.ckAcepto.enableFromIframe=function enableFromIframe(){gtag=function(){MapIframeComSon.trigger('gtag',Array.from(arguments));};window.dataLayer.pushPreBW=window.dataLayer.push;window.dataLayer.push=function(){Array.from(arguments).map(function(gtagVal){MapIframeComSon.trigger('gtagPush',gtagVal);});};gtag('consent','update',{'ad_storage':'granted','analytics_storage':'granted'});if(Array.isArray(this.key)&&this.key.length>1){for(var skP=1;typeof this.key[skP]!='undefined';skP++){var gtagKey=(this.key[skP]==='false')?false:this.key[skP];if(gtagKey){gtag('config',gtagKey,{'anonymize_ip':true,'debug_mode':true});}}}
14if(Array.isArray(window.dataLayer)&&window.dataLayer.length>0){var ignore=['js','config','consent','gtm.js','gtm.dom'];for(var pCont=0;typeof window.dataLayer[pCont]!='undefined';pCont++){var pasado=window.dataLayer[pCont];if(Object.prototype.toString.call(pasado)==='[object Arguments]'){if(ignore.indexOf(pasado[0])===-1){MapIframeComSon.trigger('gtag',Array.from(pasado));}}
15else{if(ignore.indexOf(pasado['event'])===-1){MapIframeComSon.trigger('gtagPush',pasado);}}}}};cogumelo.ckAcepto.init=function init(key,ckName){if(typeof key!=='undefined'){this.key=key;}
16if(typeof ckName!=='undefined'){this.name=ckName;}
17this.txtButtonAceptar=__('Aceptar');this.txtLink=__('Política de uso de cookies');this.msg=[__('Utilizamos cookies propias y de terceros '),__('para analizar sus preferencias '),__('y hábitos de navegación. '),__('Puede obtener más información en nuestra ')+'#cogumelo.ckAcepto.htmlLink#',__('Pulse el botón "#cogumelo.ckAcepto.txtButtonAceptar#" '),__('para consentir el uso de todas las cookies. ')].join(' ')};cogumelo.ckAcepto.exec=function exec(){var ckVal=this.get();if(ckVal!==null){if(ckVal){this.enableExternals();}}
18else{var isIframe=false;try{isIframe=self!==top||window.location!==window.parent.location;}catch(e){isIframe=true;}
19if(isIframe){this.enableExternals();}
20else{this.remove();this.showPanel();}}};cogumelo.ckAcepto.autostart=function autostart(from='desc'){if(!this.autostarted&&typeof cogumelo.ckAceptoAutostart==='function'){cogumelo.ckAcepto.autostarted=true;cogumelo.ckAceptoAutostart();}};cogumelo.ckAcepto.cleanOld();cogumelo.ckAcepto.autostart('ckAcepto.js');

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.