1
0
forked from phoedos/pmd

Fix homepage internal links

This commit is contained in:
Clément Fournier
2018-06-12 14:57:19 +02:00
parent 3a7e6815bf
commit 3c668afb33

@ -1,6 +1,6 @@
<script src="../../js/jquery-ui.min.js"></script>
<script>
<script type="text/javascript">
// Adds a pretty animation to links to shuffle panels
$(function () {
$('a[href^=#shuffle-panel]').click(function () {
@ -10,8 +10,8 @@ $(function () {
target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
if (target.length) {
$('html,body').animate({
scrollTop: target.offset().top - 250,
$('#topbar-content-offset').animate({
scrollTop: $('#grid-rule').position().top
}, {
duration: 500,
complete: function () {
@ -19,8 +19,6 @@ $(function () {
}
});
// $(this.hash).effect("highlight", {}, 3000);
// $(this.hash).toggle("highlight");
return false;
}
}