Team:Paris Bettencourt/header

From 2012.igem.org

(Difference between revisions)
Line 43: Line 43:
var positionElementInPage = $("#wrapper").offset().top;
var positionElementInPage = $("#wrapper").offset().top;
$(window).scroll(
$(window).scroll(
-
     function() {
+
     $(function() {
         if ($(window).scrollTop() >= positionElementInPage) {
         if ($(window).scrollTop() >= positionElementInPage) {
             // fixed
             // fixed
Line 51: Line 51:
             $('#menu').removeClass("sticky");
             $('#menu').removeClass("sticky");
         }
         }
-
     }
+
     })
);
);
</script>
</script>

Revision as of 14:25, 23 August 2012


iGEM Paris Bettencourt 2012