all repos — h3rald @ 14b0a0d76c1c8f800eef51b97d082a0088c0686a

The sources of https://h3rald.com

Fixed navigation links; closes #29.
h3rald h3rald@h3rald.com
Fri, 14 Aug 2009 16:23:40 +0200
commit

14b0a0d76c1c8f800eef51b97d082a0088c0686a

parent

30e0d83d11af833c3305d4995573bc244c6280f6

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M resources/js/slider.jsresources/js/slider.js

@@ -46,6 +46,7 @@ // go find the navigation link that has this target and select the nav

function trigger(data) { var el = $('#slider .navigation').find('a[href$="' + data.id + '"]').get(0); selectNav.call(el); + $.scrollTo('#header'); } if (window.location.hash) {

@@ -64,7 +65,7 @@ || 0) * -1;

var scrollOptions = { -target: $scroll, // the element that has the overflow + target: $scroll, // the element that has the overflow // can be a selector which will be relative to the target items: $panels,