Difference between revisions of "Template:Fudan-CHINA"

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&amp;action=raw&amp;ctype=text/javascript">
 +
//jQueryUi
 +
</script>
 
<script type="text/javascript" src="https://2018.igem.org/wiki/index.php?title=Template:Fudan-CHINA/jQueryAnimateColors&amp;action=raw&amp;ctype=text/javascript">
 
<script type="text/javascript" src="https://2018.igem.org/wiki/index.php?title=Template:Fudan-CHINA/jQueryAnimateColors&amp;action=raw&amp;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" />
 
-->
 
-->
+
<!--
+
<script type="text/javascript" src="https://2018.igem.org/wiki/index.php?title=Template:Fudan-CHINA/SuperSlide&amp;action=raw&amp;ctype=text/javascript">
+
//jQuery_SuperSlide
+
</script>
+
-->
+
+
  
  
Line 265: Line 261:
 
var winHeight=$(window).height();
 
var winHeight=$(window).height();
 
var imgHeight=obj2.height();
 
var imgHeight=obj2.height();
if(scrollTop+winHeight-0.5*imgHeight>targetHeight){
+
if(scrollTop+winHeight-0.3*imgHeight>targetHeight){
setTimeout(function(){  obj.animate({top:'0px',opacity:1},500); }, delayTime);
+
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},500); }, delayTime);
+
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(42,52,72,0.8)",boxShadow:"0px 0px 5px"},"fast");
+
$("#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