<p><small>The repository used to create this website is available at <astyle="color: #108b96;"href="https://gitlab.igem.org/2022/sesame-shenzhen">gitlab.igem.org/2022/sesame-shenzhen</a>.</small></p>
</div>
</div>
<script>
functiongoTop(min_height){
$(".goTop").click(
function(){
$('html,body').animate({
scrollTop:0
},700);
});
//获取页面的最小高度,无传入值则默认为600像素
min_height=min_height?min_height:400;
//为窗口的scroll事件绑定处理函数
$(window).scroll(function(){
//获取窗口的滚动条的垂直位置
vars=$(window).scrollTop();
//当窗口的滚动条的垂直位置大于页面的最小高度时,让返回顶部元素渐现,否则渐隐
if (s>min_height){
$(".goTop").fadeIn(100);
}else{
$(".goTop").fadeOut(200);
}
});
}
$(function(){
goTop();
});
$("a[href*=\\#],area[href*=\\#]").click(function(){//若报错则改为$(document).on('click', 'a[href^="#"]', function () {