// FUNCION PARA ANCLAS $(function() { // $('#access a[href*=#]:not([href=#])').click(function() { // if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { // var target = $(this.hash); // target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); // if (target.length) { // $('html,body').animate({ // scrollTop: target.offset().top -280 // }, 1800); // return false; // } // } // }); $('nav a[href*=#]:not([href=#])').click(function() { if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { var target = $(this.hash); target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); if (target.length) { $('html,body').animate({ scrollTop: target.offset().top -90 }, 1800); return false; } } }); }); new WOW( { offset:0, mobile:true, live:true , }).init(); $(document).ready(function(){ $(window).scroll(function(){ var wScrollY = $(window).scrollTop(); var offsetTop = $('#header_fixed').attr('data-offset') if(wScrollY > 1){ $('#header_fixed').addClass('animar_header'); }else{ $('#header_fixed').removeClass('animar_header'); } }); }); function btn_menu() { if (document.querySelector('#menu_jungle').classList.contains('menu_jungle_off')) { document.querySelector('#menu_jungle').classList.add('menu_jungle_on'); document.querySelector('#menu_jungle').classList.remove('menu_jungle_off'); } else{ document.querySelector('#menu_jungle').classList.add('menu_jungle_off'); document.querySelector('#menu_jungle').classList.remove('menu_jungle_on'); } } function cerrar_menu(){ document.querySelector('#menu_jungle').classList.add('menu_jungle_off'); document.querySelector('#menu_jungle').classList.remove('menu_jungle_on'); }