Team:NCTU Formosa/source/head

From 2013.igem.org

(Difference between revisions)
(Undo revision 364342 by Calvinhue (talk))
 
(5 intermediate revisions not shown)
Line 8: Line 8:
<link href='https://2013.igem.org/Team:NCTU Formosa/css/style?action=raw&ctype=text/css' rel="stylesheet">
<link href='https://2013.igem.org/Team:NCTU Formosa/css/style?action=raw&ctype=text/css' rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>
-
<link rel="stylesheet" media="only screen and (min-width: 850px)" href="https://2013.igem.org/Team:NCTU Formosa/css/style850u?action=raw&ctype=text/css">
+
<link rel="stylesheet" media="only screen and (min-width: 750px)" href="https://2013.igem.org/Team:NCTU Formosa/css/style850u?action=raw&ctype=text/css">
-
<link rel="stylesheet" media="only screen and (max-width: 850px)" href="https://2013.igem.org/Team:NCTU Formosa/css/style850b?action=raw&ctype=text/css">
+
<link rel="stylesheet" media="only screen and (max-width: 750px)" href="https://2013.igem.org/Team:NCTU Formosa/css/style850b?action=raw&ctype=text/css">
 +
<link rel="stylesheet" media="only screen and (max-width: 850px)" href="https://2013.igem.org/Team:NCTU Formosa/css/style750u?action=raw&ctype=text/css">
<link rel="stylesheet" media="only screen and (max-width: 600px)" href="https://2013.igem.org/Team:NCTU_Formosa/css/style320b?action=raw&ctype=text/css">
<link rel="stylesheet" media="only screen and (max-width: 600px)" href="https://2013.igem.org/Team:NCTU_Formosa/css/style320b?action=raw&ctype=text/css">
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
Line 145: Line 146:
return false;
return false;
   });
   });
-
$("#back-top").css({opacity: '0'});
+
$("#back-top").hide();
$(function () {
$(function () {
$(window).scroll(function () {
$(window).scroll(function () {
if ($(this).scrollTop() > 100) {
if ($(this).scrollTop() > 100) {
-
$('#back-top').animate({'opacity': '1'}, 500);
+
$('#back-top').fadeIn();
} else {
} else {
-
$('#back-top').animate({'opacity': '0'}, 500);
+
$('#back-top').fadeOut();
}
}
});
});

Latest revision as of 13:28, 15 September 2014