Team:NCTU Formosa/source/head
From 2013.igem.org
(Difference between revisions)
Line 91: | Line 91: | ||
$('#toc').stop().css({ | $('#toc').stop().css({ | ||
position: 'absolute' | position: 'absolute' | ||
- | }).animate({'top': '0px'}, 500) | + | }).animate({'top': '0px'}, 500); |
} | } | ||
else { | else { | ||
$('#toc').stop().css({ | $('#toc').stop().css({ | ||
position: 'fixed' | position: 'fixed' | ||
- | }).animate({'top': '78px'}, 500) | + | }).animate({'top': '78px'}, 500); |
} | } | ||
} | } | ||
Line 104: | Line 104: | ||
wheight = $(window).height(); | wheight = $(window).height(); | ||
if($('#toc').height()+100>wheight) { long=true; } else {long=false;} | if($('#toc').height()+100>wheight) { long=true; } else {long=false;} | ||
+ | if($(window).width()<943) { | ||
+ | $('.changeFontText').css({display: 'none'}); | ||
+ | $('.changeFontArrow').css({display: 'none'}); | ||
+ | } else { | ||
+ | |||
+ | $('.changeFontText').css({display: 'inline'}); | ||
+ | $('.changeFontArrow').css({display: 'inline'}); | ||
+ | } | ||
}); | }); | ||
var originalFontSize = $('.card').css('font-size'); | var originalFontSize = $('.card').css('font-size'); |
Revision as of 14:22, 19 September 2013