Difference between revisions of "Team:UiOslo Norway/Team"
Danmichaelo (Talk | contribs) (Scroll to top of #info when clicking image) |
Danmichaelo (Talk | contribs) m (litt mer luft) |
||
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 - | + | $('html,body').animate({scrollTop: $('#info').offset().top - 50}, 200); |
return false; | return false; | ||
}); | }); |
Revision as of 20:18, 6 September 2015