1$(document).ready(function() { 2 3 $('#c1').click(function() { 4 // First we get the viewport height and we multiple it by 1% to get a value for a vh unit 5 let vh = window.innerHeight * 0.01; 6 // Then we set the value in the --vh custom property to the root of the document 7 document.documentElement.style.setProperty('--vh', `${vh}px`); 8 9 $(".cont-searcher").show(500); //muestro capa buscador 10 $(".navbar-toggle").hide(500); //oculto icono menu mobile 11 }); 12 13 $('.close-search').click(function() { 14 $(".cont-searcher").hide(500); //oculto capa buscador 15 $(".navbar-toggle").show(500); //muestro icono menu mobile 16 }); 17 18 $('form[id=js-footer-subscribe-to-newsletter-form]').submit(function(ev) { 19 ev.preventDefault(); 20 21 var $form = $(this); 22 var $message = $(this).parent().find('#js-newsletter-message'); 23 var actionUrl = $form.attr('action'); 24 25 // serialize() en vez de construir el payload a mano: el formulario 26 // lleva campos del captcha antibot (footer_math_captcha_enabled, 27 // captcha_math_value, captcha_challenge_id) y señales de 28 // comportamiento (pointer_events_count, keystroke_intervals) que 29 // deben llegar al servidor para que la validación del captcha 30 // (SISNBUCO2-8325/SISNBUCO2-8559) se aplique de verdad en el envÃo. 31 var data = $form.serialize(); 32 33 $message.html(''); 34 $.post(actionUrl, data, null, 'json') 35 .done(function(response) { 36 $message.html(response.message); 37 $message.removeClass(); 38 39 if (response.type === 'label-success') { 40 $form.addClass('hidden'); 41 $('.mini-newsletter-form p').addClass('hidden'); 42 43 $message.css('color', ''); 44 } else { 45 $message.css('color', 'red'); 46 } 47 }); 48 }); 49});
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.