Difference between revisions of "Team:SCAU-China/Notebook"

Line 415: Line 415:
 
                                            
 
                                            
 
</body>
 
</body>
 +
 +
<div style=" cursor:pointer;position:fixed; right:20px; bottom:20px;">
 +
<img src="https://static.igem.org/mediawiki/2016/b/b9/T--SCAU-China--Home1.png" onClick="abc()" width="60px" />
 +
</div>
 +
<script>
 +
var timer = null;
 +
function abc(){
 +
cancelAnimationFrame(timer);
 +
timer = requestAnimationFrame(function fn(){
 +
var oTop = document.body.scrollTop || document.documentElement.scrollTop;
 +
if(oTop > 0){
 +
document.body.scrollTop = document.documentElement.scrollTop = oTop - 50;
 +
timer = requestAnimationFrame(fn);
 +
}else{
 +
cancelAnimationFrame(timer);
 +
}
 +
});
 +
}
 +
</script>
 +
  
 
<script src="https://2016.igem.org/Team:SCAU-China/jsfile?action=raw&ctype=text/javascript"></script>  <!--mater-->
 
<script src="https://2016.igem.org/Team:SCAU-China/jsfile?action=raw&ctype=text/javascript"></script>  <!--mater-->

Revision as of 20:47, 14 October 2016

SCAU

Notebook
image