1(function($,Drupal){'use strict';$.fn.isExternal=function(){var host=new RegExp('/'+window.location.host+'/');var link='http://'+window.location.host+this.attr('href');return!host.test(link);};Drupal.behaviors.OutboundLinks={attach:function(context,settings){$(once('OutboundLinks','a:not([class^="a2a_button_"], [href^="mailto:"], [href^="#"], .event--sidebar--block__info__registration > a)',context)).each(function(){$(this).on('click auxclick',function(event){if($(this).isExternal()){var contect_type=this.innerText;var param_location=this.getAttribute("href");dataLayerPush('exit_link','Outbound links',contect_type,'exit_url',param_location);}});});}} 2Drupal.behaviors.Formulario={attach:function(context,settings){$(once('Formulario','input[data-gtm="ev_envioformulario"]',context)).each(function(){$(this).on('click auxclick',function(event){var contect_type=this.value;var param_location=$('#main-content').find('h1').text().trim();dataLayerPush('enviar_formulario','Form',contect_type,'context',param_location);});});}} 3Drupal.behaviors.RelatedContent={attach:function(context,settings){$(once('RelatedContent','.block-views-blockforyourinterest-foryourinterest .news--card__link a',context)).each(function(){$(this).on('click auxclick',function(event){var contect_type=this.innerText;var param_location=this.getAttribute("href");dataLayerPush('click_noticias','Related content',contect_type,'exit_url',param_location);});});}} 4Drupal.behaviors.ShareThis={attach:function(context,settings){$(once('ShareThis','a[class^="a2a_button_"]',context)).each(function(){$(this).on('click auxclick',function(event){var class_element=this.getAttribute("class");var split_class=class_element.split('_');var contect_type=split_class[split_class.length-1];var breadcrumbs=$('ol.breadcrumb').find('li');var param_location='';for(var i=0;i<breadcrumbs.length;i++){param_location=param_location+breadcrumbs[i].innerText.trim()+"/";} 5param_location=param_location.slice(0,-1);dataLayerPush('share_socialmedia','Social media',contect_type,'context',param_location);});});}} 6Drupal.behaviors.Inscription={attach:function(context,settings){$(once('Inscription','.event--sidebar--block__info__registration > a',context)).each(function(){$(this).on('click auxclick',function(event){var contect_type=this.innerText;var param_location=$('#main-content').find('h1').text().trim();dataLayerPush('registro_evento','Evento/convocatoria',contect_type,'context',param_location);});});}} 7Drupal.behaviors.Downloads={attach:function(context,settings){$(once('Downloads','a[href$="pdf"], a[href$="jpg"], a[href$="png"], a[href$="docx"]',context)).each(function(){$(this).on('click auxclick',function(event){var contect_type=this.innerText;var param_location=decodeURI(this.getAttribute("href").split('/').slice(-1).toString());dataLayerPush('click_download','Download',contect_type,'context',param_location);});});}} 8Drupal.behaviors.EmailClick={attach:function(context,settings){$(once('EmailClick','a[href^="mailto"]',context)).each(function(){$(this).on('click auxclick',function(e){var carryOn=true;var i=0;var contect_type=this.innerText;var page_title=$('#main-content').find('h1').text().trim();var element=this;while(carryOn){i++;if(i===15){carryOn=false;} 9var parent=element.parentNode;if(parent.getElementsByTagName('h2').length!==0){var page_section=parent.getElementsByTagName('h2')[0].innerText;carryOn=false;}else{element=parent;}} 10var param_location=page_title+'/'+page_section;dataLayerPush('click_email','Email',contect_type,'context',param_location);});});}} 11function dataLayerPush(event_name,category,element,variable_name,param_location){if(event_name!=='click_download'){if(variable_name==='context'){return dataLayer.push({'event':event_name,'category':category,'element':element,'context':param_location,});}else if(variable_name==='exit_url'){return dataLayer.push({'event':event_name,'category':category,'element':element,'exit_url':param_location,});}}else{var type_file=param_location.split('.').slice(-1).toString().toUpperCase();return dataLayer.push({'event':event_name,'category':category,'element':element,'context':param_location,'formato_documento':type_file});}}})(jQuery,Drupal);function redes_formatText(s){var r=s.toLowerCase();r=r.trim();r=r.replace(new RegExp(/[à áâãäå]/g),"a");r=r.replace(new RegExp(/[èéêë]/g),"e");r=r.replace(new RegExp(/[ìÃîï]/g),"i");r=r.replace(new RegExp(/[òóôõö]/g),"o");r=r.replace(new RegExp(/[ùúûü]/g),"u");r=r.replace(new RegExp(/["'¨]/g),"");r=r.replace(new RegExp(/%c3%b1/g),"ñ");r=r.replaceAll('-'," ");return r;}
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.