Difference between revisions of "Team:SZU China/Introductions"
Line 23: | Line 23: | ||
min-height: 1000px; | min-height: 1000px; | ||
} | } | ||
+ | .backtop { | ||
+ | background: url(http://www.w3cschool.cc/wp-content/themes/w3cschool.cc/assets/img/backtotop.png) no-repeat center center; | ||
+ | bottom: 20px; | ||
+ | cursor: pointer; | ||
+ | display: none; | ||
+ | height: 70px; | ||
+ | position: fixed; | ||
+ | right: 20px; | ||
+ | text-indent: -9999px; | ||
+ | width: 70px; | ||
+ | z-index: 100; | ||
+ | } | ||
+ | |||
#columns { | #columns { | ||
-webkit-column-width: 320px; | -webkit-column-width: 320px; | ||
Line 84: | Line 97: | ||
<html> | <html> | ||
<body> | <body> | ||
− | + | <a class="backtop" href="javascript:void" style="display: none;"></a> | |
<div class="text-title"> | <div class="text-title"> | ||
Line 211: | Line 224: | ||
</figure> | </figure> | ||
− | </div> | + | </div> |
+ | <script> | ||
+ | var h = $(window).height(); | ||
+ | |||
+ | $(window).scroll(function () { | ||
+ | if($(window).scrollTop()>=h*1.5) { | ||
+ | $(".backtop").fadeIn(); | ||
+ | }else { | ||
+ | $(".backtop").fadeOut(); | ||
+ | } | ||
+ | }); | ||
+ | $(".backtop").click(function(event){ | ||
+ | $('html,body').animate({scrollTop:0}, 500); | ||
+ | return false; | ||
+ | }); | ||
+ | </script> | ||
+ | |||
<script src="https://2015.igem.org/Template:SZU_China/bootstrap/Javascript?action=raw&ctype=text/javascript"></script> | <script src="https://2015.igem.org/Template:SZU_China/bootstrap/Javascript?action=raw&ctype=text/javascript"></script> | ||
</body> | </body> | ||
</html> | </html> |
Revision as of 13:57, 18 September 2015
Introductions
Instructors
Members
Advisors