Team:Calgary Entrepreneurial/Sandbox

From 2013.igem.org

(Difference between revisions)
Line 359: Line 359:
<!--Window scrolling script for sticky header-->
<!--Window scrolling script for sticky header-->
<script type="text/javascript">
<script type="text/javascript">
-
+
$(document).ready(function(){
 +
 +
var fixadent = $("#maincontent"),
 +
pos = fixadent.offset();
 +
 +
$(window).scroll(function(){
 +
 +
if($(this).scrollTop() > pos.top){
 +
$('#whiteheader').css('display', 'block');
 +
}
 +
else{
 +
$('#whiteheader').css('display', 'none');
 +
}
 +
 +
});
 +
 +
});

Revision as of 00:10, 22 September 2013

Paragraph in black text

Paragraph text block for testing purposes.