Commit 65807f9d authored by Guillaume Seguin's avatar Guillaume Seguin

Minor change to scroll script

parent a755c820
......@@ -62,7 +62,8 @@
<script type="text/javascript">
$(function() {
$('a[href*="index.html#"]:not([href="index.html#"])').click(function() {
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
// location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && l
if (location.hostname == this.hostname) {
var target = $(this.hash);
target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
if (target.length) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment