Team:Evry/template v1
From 2013.igem.org
(Difference between revisions)
(37 intermediate revisions not shown) | |||
Line 28: | Line 28: | ||
$(document).scroll(function() { | $(document).scroll(function() { | ||
- | if($(document).scrollTop()>= | + | if($(document).scrollTop()>=180) |
{ | { | ||
- | $('aside').css('position','fixed').css('top',' | + | $('aside').css('position','fixed').css('top','40px').css('box-shadow','0px 3px 6px #1c1a19'); |
} | } | ||
else | else | ||
{ | { | ||
- | $('aside').css('position','static').css('float','left').css('margin-left','0.3%').css('box-shadow',' | + | $('aside').css('position','static').css('float','left').css('margin-left','-0.3%').css('box-shadow','none'); |
} | } | ||
}); | }); | ||
Line 46: | Line 46: | ||
$(document).scroll(function() { | $(document).scroll(function() { | ||
- | if($(document).scrollTop()>= | + | if($(document).scrollTop()>=180) |
{ | { | ||
- | $(' | + | $('#menu').css('position','fixed').css('top','0px').css('width','100%'); |
- | $(' | + | $('#menu a span').css('display','none'); |
- | + | $('#menu ul').css('top','1.5em').css('top','1.5vw'); | |
- | $(' | + | $('#menu #igem-link').css('width','1.5%'); |
- | + | } | |
- | $(' | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | } | + | |
else | else | ||
{ | { | ||
- | $(' | + | $('#menu').css('position','static'); |
- | + | $('#menu a span').css('display','block'); | |
- | $(' | + | $('#menu ul').css('top','5.5em').css('top','5.5vw'); |
- | + | $('#menu #igem-link').css('width','4%'); | |
- | $(' | + | |
- | + | ||
- | $(' | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
} | } | ||
}); | }); | ||
Line 93: | Line 72: | ||
if($(document).scrollTop()>=160) | if($(document).scrollTop()>=160) | ||
{ | { | ||
- | $('.onglet').css('position','fixed').css(' | + | $('.onglet').css('position','fixed').css('margin-left','8px').css('top','5%'); |
- | } | + | $('.onglet-left').css('position','fixed').css('top','5%'); |
- | + | } | |
else | else | ||
{ | { | ||
- | $('.onglet').css('position','absolute').css(' | + | $('.onglet').css('position','absolute').css('margin-left','0px').css('top','auto'); |
+ | $('.onglet-left').css('position','absolute').css('top','auto'); | ||
} | } | ||
Line 105: | Line 85: | ||
</script> | </script> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
</html> | </html> |
Latest revision as of 18:04, 19 October 2013