Template:Team:Calgary/Test

From 2013.igem.org

(Difference between revisions)
Line 44: Line 44:
$('#LogoItem').css('display', 'none');
$('#LogoItem').css('display', 'none');
}
}
 +
}
 +
 +
var ScreenWidth = $('body').width();
 +
if (ScreenWidth > 1007) {
 +
var Margins = Math.floor(ScreenWidth * .086666);
 +
var ElementWidth = Math.floor(ScreenWidth * .37);
 +
 +
$('#SectionLinks').css('padding-left', Margins);
 +
$('#SectionLinks').css('padding-top', Margins);
 +
$('#SectionLinks .DescriptionLink').css('margin-right', Margins);
 +
$('#SectionLinks .DescriptionLink').css('margin-bottom', Margins);
 +
$('#SectionLinks .DescriptionLink').css('width', ElementWidth);
}
}
Line 57: Line 69:
}
}
}
}
-
});
+
 +
var ScreenWidth = $('body').width();
 +
if (ScreenWidth > 1007) {
 +
var Margins = Math.floor(ScreenWidth * .086666);
 +
var ElementWidth = Math.floor(ScreenWidth * .37);
 +
 +
$('#SectionLinks').css('padding-left', Margins);
 +
$('#SectionLinks').css('padding-top', Margins);
 +
$('#SectionLinks .DescriptionLink').css('margin-right', Margins);
 +
$('#SectionLinks .DescriptionLink').css('margin-bottom', Margins);
 +
$('#SectionLinks .DescriptionLink').css('width', ElementWidth);
 +
}
 +
});
});
});
</script>
</script>

Revision as of 00:42, 14 August 2013

Home