Template:Team:Calgary/Test
From 2013.igem.org
(Difference between revisions)
(29 intermediate revisions not shown) | |||
Line 4: | Line 4: | ||
$(document).ready(function() { | $(document).ready(function() { | ||
$('#Banner').css('display', 'block'); | $('#Banner').css('display', 'block'); | ||
- | $('#Page').css({'position' : 'relative', top : ' | + | $('#Page').css({'position' : 'relative', top : '19px'}); |
$('#TopBar').css('position', 'static'); | $('#TopBar').css('position', 'static'); | ||
- | $('#Content').css('top', ' | + | $('#Content').css('top', '0'); |
- | if(window.pageYOffset < | + | /*if (window.pageYOffset < 89) { |
+ | $('#Banner').css('height', '100px'); | ||
+ | } | ||
+ | else { | ||
+ | $('#Banner').css('height', '89px'); | ||
+ | }*/ | ||
+ | |||
+ | if (window.pageYOffset < 180) { | ||
$('#TopBar').css('position', 'static'); | $('#TopBar').css('position', 'static'); | ||
} | } | ||
Line 16: | Line 23: | ||
$(window).scroll(function() { | $(window).scroll(function() { | ||
- | if(window.pageYOffset < | + | /*if (window.pageYOffset < 89) { |
+ | $('#Banner').css('height', '100px'); | ||
+ | } | ||
+ | else { | ||
+ | $('#Banner').css('height', '89px'); | ||
+ | }*/ | ||
+ | |||
+ | if(window.pageYOffset < 180) { | ||
$('#TopBar').css('position', 'static'); | $('#TopBar').css('position', 'static'); | ||
- | $('#Content').css('top', ' | + | $('#Content').css('top', '0'); |
- | else | + | } |
+ | else { | ||
$('#TopBar').css('position', 'fixed'); | $('#TopBar').css('position', 'fixed'); | ||
- | $('#Content').css('top', ' | + | $('#Content').css('top', '94px'); |
+ | } | ||
}); | }); | ||
}); | }); | ||
</script> | </script> | ||
</html> | </html> |
Latest revision as of 04:24, 24 September 2013