Team:NCTU Formosa/source/head
From 2013.igem.org
(Difference between revisions)
Line 145: | Line 145: | ||
return false; | return false; | ||
}); | }); | ||
- | $("#back-top"). | + | $("#back-top").hide(); |
$(function () { | $(function () { | ||
$(window).scroll(function () { | $(window).scroll(function () { | ||
if ($(this).scrollTop() > 100) { | if ($(this).scrollTop() > 100) { | ||
- | $('#back-top'). | + | $('#back-top').fadeIn(500); |
} else { | } else { | ||
- | $('#back-top'). | + | $('#back-top').fadeOut(500); |
} | } | ||
}); | }); |
Revision as of 17:05, 24 October 2013