Team:TCU Taiwan/Team
From 2014.igem.org
Line 57: | Line 57: | ||
height: 100%; | height: 100%; | ||
background-color: transparent; | background-color: transparent; | ||
+ | } | ||
+ | |||
+ | #gotop { | ||
+ | display: none; | ||
+ | position: fixed; | ||
+ | right: 20px; | ||
+ | bottom: 20px; | ||
+ | padding: 10px 15px; | ||
+ | font-size: 20px; | ||
+ | background: #777; | ||
+ | color: white; | ||
+ | cursor: pointer; | ||
} | } | ||
</style> | </style> | ||
Line 75: | Line 87: | ||
#drop-nav li ul li {border-top: 10px; } | #drop-nav li ul li {border-top: 10px; } | ||
</style> | </style> | ||
+ | |||
+ | <script type="text/javascript"> | ||
+ | |||
+ | $(function(){ | ||
+ | $("#gotop").click(function(){ | ||
+ | jQuery("html,body").animate({ | ||
+ | scrollTop:0 | ||
+ | },1000); | ||
+ | }); | ||
+ | $(window).scroll(function() { | ||
+ | if ( $(this).scrollTop() > 300){ | ||
+ | $('#gotop').fadeIn("fast"); | ||
+ | } else { | ||
+ | $('#gotop').stop().fadeOut("fast"); | ||
+ | } | ||
+ | }); | ||
+ | }); | ||
+ | </script> | ||
<!-- here ends the section that changes the default wiki template to a white full width background --> | <!-- here ends the section that changes the default wiki template to a white full width background --> | ||
Line 526: | Line 556: | ||
<!-- end of advisors gallery --> | <!-- end of advisors gallery --> | ||
- | </div> | + | </div><div id="gotop">˄</div> |
</html> | </html> |
Revision as of 08:56, 20 September 2014
˄
|