1 2 3$(document).ready(function() { 4 5//botones push 6 $('.botonPush').on('click', function(e) { 7 8 9 10 let hr=$(this).data('url'); 11 let elem=$(this).data('text'); 12 let t=$(this).attr('target'); 13 14 if(!t){t="_blank";} 15 e.preventDefault(); 16 console.log(elem+ ' '+hr); 17 dataLayer.push({ 18 event : 'button_click', //Static data 19 text_option: elem, //Dynamic data 20 link_url: hr, //Dynamic data 21 }); 22 setTimeout(function() { 23 window.open(hr,t); // Redirect after the delay 24 }, 200); 25 26 }); 27 28 // footer redes 29 $('.footerRedes').on('click', function(e) { 30 31 32 let elem=$(this).find('img').attr('alt'); 33 let hr=$(this).find('a').attr('href'); 34 e.preventDefault(); 35 //console.log(elem); 36 dataLayer.push({ 37 event : 'footer_click', //Static data 38 text_option: elem, //Dynamic data 39 link_url: hr, //Dynamic data 40 }); 41 setTimeout(function() { 42 window.open(hr); // Redirect after the delay 43 }, 200); 44 45 }); 46 47 48 // bolitas footer 49 $('.botonesPermanentesBolitaBots ').on('click', function(e) { 50 51 52 let elem=$(this).data('tipo'); 53 54console.log(elem); 55 dataLayer.push({ 56 event : 'click_contact', //Static data 57 option: elem, //Dynamic data 58 59 }); 60 61 62 }); 63 64 65 // footer redes 66 $('.footerClick').on('click', function(e) { 67 68 69 let elem=$(this).find('span').text(); 70 let hr=$(this).parent('.botonPushHref').attr('href'); 71 e.preventDefault(); 72 console.log(elem); 73 dataLayer.push({ 74 event : 'footer_click', //Static data 75 text_option: elem, //Dynamic data 76 link_url: hr, //Dynamic data 77 }); 78 setTimeout(function() { 79 window.open(hr); // Redirect after the delay 80 }, 200); 81 82 }); 83 84//menu top 85 86 $('.menu_click').on('click', function(e) { 87 88 let elem=$(this).text(); 89 elem=elem.trim(); 90 let hr=$(this).attr('href'); 91 let t=$(this).attr('target'); 92 // console.log(elem) 93 e.preventDefault(); 94 dataLayer.push({ 95 event : 'menu_click', //Static data 96 text_option: elem, //Dynamic data 97 link_url: hr, //Dynamic data 98 }); 99 setTimeout(function() { 100 window.open(hr,t); // Redirect after the delay 101 }, 200); 102 103 }); 104 105 //side 106 107 108 $('.sider_click').on('click', function(e) { 109 110 let elem=$(this).text(); 111 elem=elem.trim(); 112 let hr=$(this).attr('href'); 113 let t=$(this).attr('target'); 114 console.log(elem) 115 e.preventDefault(); 116 dataLayer.push({ 117 event : 'sider_click', //Static data 118 text_option: elem, //Dynamic data 119 link_url: hr, //Dynamic data 120 }); 121 setTimeout(function() { 122 window.open(hr,t); // Redirect after the delay 123 }, 200); 124 125 }); 126 127 128//fin del onready 129 130});
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.