Template:Team:Macquarie Australia/TopNavBar

From 2014.igem.org

(Difference between revisions)
Line 55: Line 55:
});
});
-
$('a[href^="#"]').click(function() {
 
-
var target = $(this.hash);
 
-
if (target.length == 0) target = $('a[name="' + this.hash.substr(1) + '"]');
 
-
if (target.length == 0) target = $('html');
 
-
$('html, body').animate({ scrollTop: target.offset().top-100 }, 1000);
 
-
return false;
 
-
});
 
});
});
</script>
</script>

Revision as of 14:55, 15 October 2014