Template:Team:Calgary/Test
From 2013.igem.org
(Difference between revisions)
Line 8: | Line 8: | ||
$('#Content').css('top', '0'); | $('#Content').css('top', '0'); | ||
- | if (window.pageYOffset < 89) { | + | /*if (window.pageYOffset < 89) { |
$('#Banner').css('height', '100px'); | $('#Banner').css('height', '100px'); | ||
} | } | ||
else { | else { | ||
$('#Banner').css('height', '89px'); | $('#Banner').css('height', '89px'); | ||
- | } | + | }*/ |
- | if (window.pageYOffset < | + | if (window.pageYOffset < 180) { |
$('#TopBar').css('position', 'static'); | $('#TopBar').css('position', 'static'); | ||
} | } | ||
Line 23: | Line 23: | ||
$(window).scroll(function() { | $(window).scroll(function() { | ||
- | if (window.pageYOffset < 89) { | + | /*if (window.pageYOffset < 89) { |
$('#Banner').css('height', '100px'); | $('#Banner').css('height', '100px'); | ||
} | } | ||
else { | else { | ||
$('#Banner').css('height', '89px'); | $('#Banner').css('height', '89px'); | ||
- | } | + | }*/ |
- | if(window.pageYOffset < | + | if(window.pageYOffset < 180) { |
$('#TopBar').css('position', 'static'); | $('#TopBar').css('position', 'static'); | ||
$('#Content').css('top', '0'); | $('#Content').css('top', '0'); |
Revision as of 00:31, 24 September 2013