Team:NCTU Formosa/source/head
From 2014.igem.org
(Difference between revisions)
(4 intermediate revisions not shown) | |||
Line 80: | 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 95: | 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 103: | 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