Team:NCTU Formosa/source/head
From 2014.igem.org
(Difference between revisions)
(5 intermediate revisions not shown) | |||
Line 14: | Line 14: | ||
<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> | ||
<script src="https://2013.igem.org/Team:Team:NCTU_Formosa/js/modernizr.custom?action=raw&ctype=text/javascript"></script> | <script src="https://2013.igem.org/Team:Team:NCTU_Formosa/js/modernizr.custom?action=raw&ctype=text/javascript"></script> | ||
+ | <script> | ||
$(function() { | $(function() { | ||
var lastId, | var lastId, | ||
Line 79: | Line 80: | ||
$('#toc').stop().css({ | $('#toc').stop().css({ | ||
position: 'fixed', | position: 'fixed', | ||
+ | top: '10px', | ||
left: '-265px' | left: '-265px' | ||
- | } | + | }); |
} | } | ||
var long = false, | var long = false, | ||
Line 94: | Line 96: | ||
$('#toc').stop().css({ | $('#toc').stop().css({ | ||
position: 'fixed', | position: 'fixed', | ||
+ | top: '0px', | ||
left: '-265px' | left: '-265px' | ||
}).animate({'top': -22-$('#toc').height()+wheight+'px'}, 500); | }).animate({'top': -22-$('#toc').height()+wheight+'px'}, 500); | ||
Line 102: | Line 105: | ||
$('#toc').stop().css({ | $('#toc').stop().css({ | ||
position: 'absolute', | position: 'absolute', | ||
+ | top: '0px', | ||
left: '-465px' | left: '-465px' | ||
- | } | + | }); |
} | } | ||
else { | else { | ||
$('#toc').stop().css({ | $('#toc').stop().css({ | ||
position: 'fixed', | position: 'fixed', | ||
+ | top: '10px', | ||
left: '-265px' | left: '-265px' | ||
- | } | + | }); |
} | } | ||
} | } |
Latest revision as of 17:14, 15 September 2014