Team:Toulouse/Result/experimental-results

From 2014.igem.org

(Difference between revisions)
Line 10: Line 10:
  <!--/* CSS contenu*/-->
  <!--/* CSS contenu*/-->
 +
 +
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js'></script>
<script type=”text/javascript”>
<script type=”text/javascript”>
-
// listen for scroll
+
<script type='text/javascript'> $(function(){
-
var positionElementInPage = $('#column-left').offset().top;
+
  $(window).scroll(function () {
-
$(window).scroll(
+
    if ($(this).scrollTop() > 565) {
-
    function() {
+
        $('#column-left').addClass("fixNavigation");  
-
        if ($(window).scrollTop() &gt;= positionElementInPage) {
+
    } else {  
-
            // fixed
+
        $('#column-left').removeClass("fixNavigation");
-
            $('#column-left').addClass("floatable");
+
         }  
-
        } else {
+
    });
-
            // relative
+
  });  
-
            $('#column-left').removeClass("floatable");
+
-
         }
+
-
    }
+
-
);
+
</script>
</script>
 +
  <style type="text/css">
  <style type="text/css">
Line 76: Line 75:
#column-left{width:25%; float:left;}
#column-left{width:25%; float:left;}
-
#column-left.floatable {
+
 
-
position: fixed;
+
.fixNavigation{  
-
top: 30px;
+
z-index: 9999;
 +
position: fixed;
 +
top: 0;
}
}

Revision as of 09:46, 15 October 2014