Difference between revisions of "Team:Cambridge-JIC"
Line 93: | Line 93: | ||
function scrollsection(id) { | function scrollsection(id) { | ||
− | $("html, body").animate({ scrollTop: $($("section.dotslide").get(id)).offset().top + 70}, 1000); | + | $("html, body").animate({ scrollTop: $($("section.dotslide").get(id)).offset().top + $("body").scrollTop() + 70}, 1000); |
} | } | ||
</script> | </script> |
Revision as of 15:05, 16 September 2015