Skip to content

Commit 69fa88e

Browse files
committed
update redirect to hash location
1 parent c668383 commit 69fa88e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/js/06-page-rating.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,9 @@
7676
},
7777
}
7878

79+
if (window.location.hash) {
80+
var hash = window.location.hash
81+
$('html, body').animate({ 'scrollTop': $(hash).offset().top }, 'slow')
82+
}
7983
/*eslint-env jquery*/
8084
})(jQuery)

0 commit comments

Comments
 (0)