Rohith kms (Talk | contribs) |
Rohith kms (Talk | contribs) |
||
Line 4: | Line 4: | ||
− | <div id="scroll" style="padding: 40px; bottom: 0; left: 45.5%;"> | + | <div id="scroll" style="padding: 40px; position: fixed; bottom: 0; left: 45.5%;"> |
<center> | <center> | ||
<img src="https://static.igem.org/mediawiki/2017/b/b4/T--IISc-Bangalore--HW--scroll.png" height="50" width="50" id="scroll"> | <img src="https://static.igem.org/mediawiki/2017/b/b4/T--IISc-Bangalore--HW--scroll.png" height="50" width="50" id="scroll"> | ||
Line 140: | Line 140: | ||
$('#scroll').click(function(){ | $('#scroll').click(function(){ | ||
− | $("html, body").animate({ scrollTop: $(window).height()}, 600); | + | $("html, body").animate({ scrollTop: $(window).scrollTop + $(window).height()}, 600); |
return false; | return false; | ||
}); | }); |
Revision as of 01:35, 2 November 2017