Skip to content

Commit 144e6c0

Browse files
committed
Melhoria na navegação
1 parent 9701105 commit 144e6c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

_site/public/scripts/script.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ $(document).ready(function() {
2424
$("#projects #slider").slideBanners();
2525
$("#projects #slider a").modal();
2626

27-
$("header nav a").click(function(){
27+
$("header nav a, footer nav a, #home nav a").click(function(){
2828
var href = $(this).attr("href");
2929
href = href.replace("#","");
3030
$('html, body').animate({scrollTop: $("a[name="+href+"]").offset().top}, 1000);

public/scripts/script.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ $(document).ready(function() {
2424
$("#projects #slider").slideBanners();
2525
$("#projects #slider a").modal();
2626

27-
$("header nav a").click(function(){
27+
$("header nav a, footer nav a, #home nav a").click(function(){
2828
var href = $(this).attr("href");
2929
href = href.replace("#","");
3030
$('html, body').animate({scrollTop: $("a[name="+href+"]").offset().top}, 1000);

0 commit comments

Comments
 (0)