Skip to content
Permalink
Browse files

Fix JS to support links with formatted text.

  • Loading branch information
t413 committed Sep 21, 2014
1 parent 0c448a2 commit dae4169759eb5d6272a4aa60c3ab7c31b90dad41
Showing with 2 additions and 1 deletion.
  1. +2 −1 site.js
@@ -84,7 +84,8 @@ $(document).ready(function (){
if ($(this).attr("href").charAt(0) == '#'){
$(this).on('click', function(event) {
event.preventDefault();
var targetHight = $($(event.target).attr("href")).offset().top
var target = $(event.target).closest("a");
var targetHight = $(target.attr("href")).offset().top
$('html,body').animate({scrollTop: targetHight - 170}, 800, "easeInOutExpo");
});
}

0 comments on commit dae4169

Please sign in to comment.
You can’t perform that action at this time.