Team:Evry/template v1
From 2013.igem.org
(Difference between revisions)
Line 33: | Line 33: | ||
{ | { | ||
$('aside').css('position','absolute').css('top','200px').css('left','15px').css('box-shadow','0px 4px 4px #1c1a19'); | $('aside').css('position','absolute').css('top','200px').css('left','15px').css('box-shadow','0px 4px 4px #1c1a19'); | ||
- | } | + | } |
- | + | }); | |
+ | }); | ||
+ | </script> | ||
+ | |||
+ | <script type="text/javascript"> | ||
+ | $(function() { | ||
+ | $(document).scroll(function() { | ||
+ | if($(document).scrollTop()>=200) | ||
+ | { | ||
+ | $('.navbar').css('position','fixed').css('top','15px').css('box-shadow','0px 6px 6px #1c1a19'); | ||
+ | |||
+ | } | ||
+ | else | ||
+ | { | ||
+ | $('aside').css('position','absolute').css('top','200px').css('left','15px').css('box-shadow','0px 4px 4px #1c1a19'); | ||
+ | } | ||
}); | }); | ||
}); | }); |
Revision as of 21:24, 10 August 2013