Template:Team:Calgary/Main

From 2013.igem.org

(Difference between revisions)
Line 30: Line 30:
<!-- JavaScript and JQuery -->
<!-- JavaScript and JQuery -->
-
<script>
 
-
$(document).ready(function() {
 
-
$('#Banner').css('display', 'block');
 
-
$('#Page').css({'position' : 'relative', top : '19px'});
 
-
$('#TopBar').css('position', 'static');
 
-
$('#Content').css('top', '0');
 
-
 
-
if (window.pageYOffset < 180) {
 
-
$('#TopBar').css('position', 'static');
 
-
}
 
-
else {
 
-
$('#TopBar').css('position', 'fixed');
 
-
}
 
-
 
-
$(window).scroll(function() {
 
-
if(window.pageYOffset < 180) {
 
-
$('#TopBar').css('position', 'static');
 
-
$('#Content').css('top', '0');
 
-
}
 
-
else {
 
-
$('#TopBar').css('position', 'fixed');
 
-
$('#Content').css('top', '94px');
 
-
}
 
-
});
 
-
});
 
-
</script>
 
<script>
<script>
$(document).ready(function() {
$(document).ready(function() {

Revision as of 05:48, 24 September 2013