m (解决JavaScript不能使用逻辑与的问题。) |
m (解决路径问题。) |
||
Line 366: | Line 366: | ||
}; | }; | ||
goProjectIntroduction=function(){ | goProjectIntroduction=function(){ | ||
− | window.location.href=" | + | window.location.href="https://2018.igem.org/Team:DLUT_China_B/Description"; |
}; | }; | ||
goParts=function(){ | goParts=function(){ | ||
− | window.location.href=" | + | window.location.href="https://2018.igem.org/Team:DLUT_China_B/PartsOverview"; |
}; | }; | ||
goModel=function(){ | goModel=function(){ | ||
− | window.location.href=" | + | window.location.href="https://2018.igem.org/Team:DLUT_China_B/ConditionOptimization"; |
}; | }; | ||
goAwards=function(){ | goAwards=function(){ | ||
− | window.location.href=" | + | window.location.href="https://2018.igem.org/Team:DLUT_China_B/AppliedDesign"; |
}; | }; | ||
goHumanPractice=function(){ | goHumanPractice=function(){ | ||
console.log('aa'); | console.log('aa'); | ||
− | window.location.href=" | + | window.location.href="https://2018.igem.org/Team:DLUT_China_B/HumanPractice"; |
}; | }; | ||
goTeamworkAndCooperation=function(){ | goTeamworkAndCooperation=function(){ | ||
− | window.location.href=" | + | window.location.href="https://2018.igem.org/Team:DLUT_China_B/TeamMembers"; |
}; | }; | ||
function isShow($el){ | function isShow($el){ | ||
− | let winH = $(window).height(), | + | let winH = $(window).height(), |
− | scrollH = $(window).scrollTop(), | + | scrollH = $(window).scrollTop(), |
− | top = $el.offsetTop; | + | top = $el.offsetTop; |
return top < scrollH + winH; | return top < scrollH + winH; | ||
} | } |
Revision as of 13:26, 18 September 2018