Line 90: | Line 90: | ||
$(window).scroll(function() { | $(window).scroll(function() { | ||
if ($(this).scrollTop() >= 50) { | if ($(this).scrollTop() >= 50) { | ||
− | + | var position = $("#sidelist").position(); | |
if(position == undefined){} | if(position == undefined){} | ||
else{ | else{ | ||
Line 96: | Line 96: | ||
} | } | ||
} else { | } else { | ||
− | + | $('#sidelist').removeAttr('style'); | |
− | + | } | |
− | + | }); | |
$(function(){ | $(function(){ | ||
$('i.fa-arrow-up').click(function(){ | $('i.fa-arrow-up').click(function(){ | ||
− | + | $('html, body').animate({scrollTop:0},600); | |
return false; | return false; | ||
}); | }); | ||
}); | }); | ||
+ | }); | ||
</script> | </script> | ||
<script src="https://2018.igem.org/Team:NCKU_Tainan/js/frame/T--NCKU_Tainan--jquery-1_12_4_min_js?action=raw&ctype=text/javascript"></script> | <script src="https://2018.igem.org/Team:NCKU_Tainan/js/frame/T--NCKU_Tainan--jquery-1_12_4_min_js?action=raw&ctype=text/javascript"></script> |
Revision as of 07:35, 12 September 2018