0
$('nav a').click(function(){
e.preventDefault();
var id = $(this).attr('href'),
targetOffaset = $(id).offset().top,
menuHeight = $('nav').innerHeight();
$('html, body').animate({
scrollTop: targetOffaset -59
}, 500);
});
Valdeir thanks for helping. But I’m already pulling both:
<script src="funcoes.js"></script>
<script src="node_modules/jquery/dist/jquery.js"></script>
Mais se jogo no console do googlechrome funciona o código. [! [insert image description here][1]][1] [1]: https://i.stack.Imgur.com/Afuid.jpg– Carlos Henrique
@Carloshenrique , as I said in my reply. The jquery must come before functions.js. Put in your code exactly the way I did and testing.
– Valdeir Psr
Valdeir guy didn’t believe that was it, I touched now kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk Thank you very much man, vlw even, to laugh here for being that kkk
– Carlos Henrique
wmsouza, already solved,Thank you :D
– Carlos Henrique