Digital Product & Brand Designer

function($) { $(document).on('click', 'a[href^="#"]', function(e) { var id = $(this).attr('href'); var $id = $(id); if ($id.length === 0) { return; } e.preventDefault(); var pos = $id.offset().top; $('body, html').animate({scrollTop: pos},800); $( "body.open-menu #overlay-menu .menu-icon" ).trigger( "click" ); }); })(jQuery); // Java para anchor scroll jQuery(document).ready(function($){ function ajustarImagen() { $('.columna-imagen .imagen-llena img').each(function(){ var colHeight = $(this).closest('.columna-imagen').height(); $(this).css('height', colHeight + 'px'); }); } ajustarImagen(); $(window).on('resize orientationchange', ajustarImagen); // También recalcula al cerrar overlay menú $(document).on('click', '#overlay-menu .menu-icon', function(){ setTimeout(ajustarImagen, 300); // espera que el overlay cierre }); });