Team:DTU-Denmark/sysucolortest

From 2014.igem.org

(Difference between revisions)
Line 51: Line 51:
});
});
});
});
 +
 +
        $(window).scroll(function() {
 +
            if ($(this).scrollTop() > 50) {
 +
                $("#nav").css("position","fixed").css("top","0");
 +
            } else {
 +
                $("#nav").css("position","absolute").css("bottom","0").css("top","");
 +
            }
 +
        });
});
});
</script>
</script>
 +
<script>
<script>
$(document).ready(function() {
$(document).ready(function() {

Revision as of 10:58, 4 October 2014

MOVED to template_css