Team:NCTU Formosa/source/head
From 2014.igem.org
(Difference between revisions)
Line 77: | Line 77: | ||
}) | }) | ||
$(document).ready(function(){ | $(document).ready(function(){ | ||
- | if ($(document).scrollTop() > | + | if ($(document).scrollTop() > 140) { |
$('#toc').stop().css({ | $('#toc').stop().css({ | ||
position: 'fixed', | position: 'fixed', | ||
- | left: ' | + | left: '-265px' |
- | }).animate({'top': ' | + | }).animate({'top': '10px'}, 500); |
} | } | ||
- | + | if ($(document).scrollTop() < 140){ | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | if ($(document).scrollTop() < | + | |
$('#toc').stop().css({ | $('#toc').stop().css({ | ||
position: 'absolute', | position: 'absolute', | ||
Line 109: | Line 92: | ||
$('#toc').stop().css({ | $('#toc').stop().css({ | ||
position: 'fixed', | position: 'fixed', | ||
- | left: ' | + | left: '-265px' |
- | }).animate({'top': ' | + | }).animate({'top': '10px'}, 500); |
} | } | ||
} | } |
Revision as of 13:29, 15 September 2014