Team:UCLA/Template/Javascript

From 2014.igem.org

(Difference between revisions)
Line 110: Line 110:
<!--BACK TO TOP BUTTON-->
<!--BACK TO TOP BUTTON-->
 +
<script type="text/javascript">
$(function(){
$(function(){
$(document).on( 'scroll', function(){
$(document).on( 'scroll', function(){
Line 142: Line 143:
$('html,body').animate({scrollTop:dest}, 700,'swing');
$('html,body').animate({scrollTop:dest}, 700,'swing');
});
});
 +
</script>
</html>
</html>

Revision as of 00:07, 5 August 2014