Team:McMaster-Ontario
From 2012.igem.org
(Difference between revisions)
Line 16: | Line 16: | ||
$(".scroll").click(function(event){ | $(".scroll").click(function(event){ | ||
event.preventDefault(); | event.preventDefault(); | ||
- | $('html,body').animate({scrollTop:$(this.hash).offset().top}, 500); | + | $('html,body').animate({scrollTop:$(this.hash).offset(-70).top}, 500); |
}); | }); | ||
}); | }); | ||
Line 40: | Line 40: | ||
</div> | </div> | ||
</div> | </div> | ||
- | <div id = "alpha" style = "height: | + | <div id = "alpha" style = "height: 500px;"> |
One | One | ||
</div> | </div> | ||
- | <div id = "beta" style = "height: | + | <div id = "beta" style = "height: 500px;"> |
Two | Two | ||
</div> | </div> | ||
- | <div id = "gamma" style = "height: | + | <div id = "gamma" style = "height: 500px;"> |
Three | Three | ||
</div> | </div> | ||
</html> | </html> |
Revision as of 14:59, 7 May 2013
One
Two
Three