Line 26: | Line 26: | ||
//jQuery | //jQuery | ||
</script> | </script> | ||
− | + | <script type="text/javascript" src="https://2018.igem.org/wiki/index.php?title=Template:Fudan-CHINA/jQueryUi&action=raw&ctype=text/javascript"> | |
+ | //jQueryUi | ||
+ | </script> | ||
<script type="text/javascript" src="https://2018.igem.org/wiki/index.php?title=Template:Fudan-CHINA/jQueryAnimateColors&action=raw&ctype=text/javascript"> | <script type="text/javascript" src="https://2018.igem.org/wiki/index.php?title=Template:Fudan-CHINA/jQueryAnimateColors&action=raw&ctype=text/javascript"> | ||
//jQuery_AnimateColors | //jQuery_AnimateColors | ||
Line 40: | Line 42: | ||
<link rel="stylesheet" type="text/css" href="https://2018.igem.org/wiki/index.php?title=Template:Fudan-CHINA/bookstrapCss&action=raw&ctype=text/css" /> | <link rel="stylesheet" type="text/css" href="https://2018.igem.org/wiki/index.php?title=Template:Fudan-CHINA/bookstrapCss&action=raw&ctype=text/css" /> | ||
--> | --> | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
Line 265: | Line 261: | ||
var winHeight=$(window).height(); | var winHeight=$(window).height(); | ||
var imgHeight=obj2.height(); | var imgHeight=obj2.height(); | ||
− | if(scrollTop+winHeight-0. | + | if(scrollTop+winHeight-0.3*imgHeight>targetHeight){ |
− | setTimeout(function(){ obj.animate({top:'0px',opacity:1}, | + | setTimeout(function(){ obj.animate({top:'0px',opacity:1},800,"easeInOutCubic"); }, delayTime); |
} | } | ||
}; | }; | ||
Line 275: | Line 271: | ||
var imgHeight=obj2.height(); | var imgHeight=obj2.height(); | ||
if(scrollTop+winHeight-0.3*imgHeight>targetHeight){ | if(scrollTop+winHeight-0.3*imgHeight>targetHeight){ | ||
− | setTimeout(function(){ obj.animate({left:'0px',opacity:1}, | + | setTimeout(function(){ obj.animate({left:'0px',opacity:1},800,"easeInOutCubic"); }, delayTime); |
} | } | ||
}; | }; | ||
Line 383: | Line 379: | ||
var barHeight=$("#top_menu_14").height(); | var barHeight=$("#top_menu_14").height(); | ||
if(topDis >0.2*winHeight){ | if(topDis >0.2*winHeight){ | ||
− | $("#navUl").stop().animate({top:barHeight,backgroundColor:"rgba( | + | $("#navUl").stop().animate({top:barHeight,backgroundColor:"rgba(5,42,62,1)",boxShadow:"0px 0px 5px"},"fast"); |
$(".navA:not(.activeA)").hover(function () { | $(".navA:not(.activeA)").hover(function () { | ||
$(this).addClass("jqhover"); | $(this).addClass("jqhover"); | ||
Line 407: | Line 403: | ||
<!----------------------------------------------------------------------------------------------------------------------------------------------------> | <!----------------------------------------------------------------------------------------------------------------------------------------------------> | ||
− | |||
Revision as of 12:56, 28 September 2018