Team:NCTU Formosa/source/head

From 2013.igem.org

(Difference between revisions)
Line 131: Line 131:
return false;
return false;
   });
   });
 +
$("#back-top").hide();
 +
$(function () {
 +
$(window).scroll(function () {
 +
if ($(this).scrollTop() > 100) {
 +
$('#back-top').fadeIn();
 +
} else {
 +
$('#back-top').fadeOut();
 +
}
 +
});
 +
$('#back-top a').click(function () {
 +
$('body,html').animate({
 +
scrollTop: 0
 +
}, 500);
 +
return false;
 +
});
 +
});
});
});
</script>
</script>

Revision as of 05:53, 20 September 2013