Difference between revisions of "Team:UiOslo Norway/Team"
Danmichaelo (Talk | contribs) (Scroll to top of #info when clicking image) |
|||
Line 94: | Line 94: | ||
$("#info img").attr("src",sInfo[ind].image); | $("#info img").attr("src",sInfo[ind].image); | ||
$("#info span").html(sInfo[ind].info); | $("#info span").html(sInfo[ind].info); | ||
+ | $('html,body').animate({scrollTop: $('#info').offset().top - 30}, 200); | ||
+ | return false; | ||
}); | }); | ||
}); | }); |
Revision as of 20:16, 6 September 2015