Template:Team:Sheffield/NavigationBar

From 2014.igem.org

(Difference between revisions)
Line 226: Line 226:
</style>
</style>
<script>
<script>
-
$('#globalWrapper').scroll(function() {  
+
$('#bodyContent').scroll(function() {  
-
    if ($('#globalWrapper').scrollTop() > 0) {
+
console.log("hmm: " + $('#bodyContent').scrollTop());
 +
    if ($('#bodyContent').scrollTop() > 0) {
        $("#navigationBar").addClass("scrolling");
        $("#navigationBar").addClass("scrolling");
        $("#navigationBar li a").addClass("scrolling");
        $("#navigationBar li a").addClass("scrolling");

Revision as of 10:09, 4 October 2014