Template:Team:Calgary/Main

From 2013.igem.org

(Difference between revisions)
Line 49: Line 49:
$('#LogoItem').css('display', 'none');
$('#LogoItem').css('display', 'none');
}
}
 +
});
 +
 +
$('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;
});
});
});
});

Revision as of 00:58, 26 September 2013